Pshatsillo / mega_hacs

MegaD HomeAssistant integration
6 stars 0 forks source link

Ошибка при установке интеграции #1

Open kamulchik opened 2 weeks ago

kamulchik commented 2 weeks ago

Описание Обновил HA до 2024.10.4 Заменил интеграцию andvikt на Pshatsillo По этой инструкции https://github.com/Pshatsillo/mega_hacs/blob/master/install.sh Предварительно удалив из custom_components интеграции от andvikt Интеграция перестала запускаться

Версии систем Enviroment: docker HA version: 2024.10.4 mega_hacs version: megad firmware version: используется mqtt: false

Ожидаемое поведение Интеграция будет работать

2024-10-31 13:55:00.388 ERROR (MainThread) [homeassistant.config_entries] Error migrating entry mega for mega Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 933, in async_migrate result = await component.async_migrate_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/mega/init.py", line 268, in async_migrate_entry config_entry.data = new ^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/config_entries.py", line 443, in setattr raise AttributeError( AttributeError: data cannot be changed directly, use async_update_entry instead

Pshatsillo commented 4 days ago

Попробуйте снова

kamulchik commented 2 days ago

Попробуйте снова

Такая же ошибка.

2024-11-11 16:30:51.102 ERROR (MainThread) [homeassistant.config_entries] Error migrating entry mega3 for mega Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 933, in async_migrate result = await component.async_migrate_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/mega/init.py", line 268, in async_migrate_entry await async_update_entry(hass, config_entry) File "/config/custom_components/mega/init.py", line 284, in async_update_entry config_entry.data = new ^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/config_entries.py", line 443, in setattr raise AttributeError( AttributeError: data cannot be changed directly, use async_update_entry instead 2024-11-11 16:30:51.384 WARNING (MainThread) [custom_components.mega.mega2] can not add ds2413 on port 30, it has wrong data: {'value': ''} 2024-11-11 16:30:51.503 DEBUG (influxdb) [homeassistant.components.influxdb] Wrote 9 events. 2024-11-11 16:30:51.701 ERROR (MainThread) [homeassistant.config_entries] Error migrating entry mega for mega Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 933, in async_migrate result = await component.async_migrate_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/mega/init.py", line 268, in async_migrate_entry await async_update_entry(hass, config_entry) File "/config/custom_components/mega/init.py", line 284, in async_update_entry config_entry.data = new ^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/config_entries.py", line 443, in setattr raise AttributeError( AttributeError: data cannot be changed directly, use async_update_entry instead

kamulchik commented 1 day ago

Похоже что это всё из одного корня и нужно ждать релиз HA. https://github.com/home-assistant/core/issues/130174

Pshatsillo commented 52 minutes ago

Проверьте, должно заработать