foxess_em icon indicating copy to clipboard operation
foxess_em copied to clipboard

Setup fails

Open screenagerbe opened this issue 4 months ago • 2 comments

Version of the custom_component

HA 2024.10.1 FoxESS EM 1.9.1

Describe the bug

Integration will not load. After updating HA to v2024.10.1 the integration stopped working with the error below. I'm not able to get it up and running again

Error log

Logger: homeassistant.config_entries
Source: config_entries.py:594
First occurred: 08:40:50 (1 occurrences)
Last logged: 08:40:50

Error setting up entry FoxESS - Energy Management for foxess_em
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 594, in async_setup
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/foxess_em/__init__.py", line 77, in async_setup_entry
    entry.data = entry.options
    ^^^^^^^^^^
  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

screenagerbe avatar Oct 05 '24 07:10 screenagerbe