You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just a heads up, i'm running a dev version of the latest HA (2024.1.0.dev20231218) and there is a change to the way that HA handles metaclasses (I think this PR home-assistant/core#105512), it has broken a few of my integrations , this one included, i'm working through them but the logs from Sun2 at startup are -
2023-12-24 09:47:40.823 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up sun2 platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 361, in _async_setup_platform
await asyncio.shield(task)
File "/config/custom_components/sun2/sensor.py", line 1299, in async_setup_platform
_sensors(
File "/config/custom_components/sun2/sensor.py", line 1235, in _sensors
_SENSOR_TYPES[config].cls(
File "/config/custom_components/sun2/sensor.py", line 391, in __init__
super().__init__(loc_params, extra, entity_description, "civil", name)
File "/config/custom_components/sun2/sensor.py", line 202, in __init__
entity_description.name = name
^^^^^^^^^^^^^^^^^^^^^^^
File "<string>", line 4, in __setattr__
dataclasses.FrozenInstanceError: cannot assign to field 'name'
The text was updated successfully, but these errors were encountered:
Just a heads up, i'm running a dev version of the latest HA (2024.1.0.dev20231218) and there is a change to the way that HA handles metaclasses (I think this PR home-assistant/core#105512), it has broken a few of my integrations , this one included, i'm working through them but the logs from Sun2 at startup are -
The text was updated successfully, but these errors were encountered: