dolezsa / thermal_comfort

Thermal Comfort sensor for HA (absolute humidity, heat index, dew point, thermal perception)
Other
543 stars 106 forks source link

HA 2024.1 beta won't create sensors #357

Closed LouiS22 closed 6 months ago

LouiS22 commented 6 months ago

Hello there, The upcoming version's betas throwing the below error:

Error while setting up thermal_comfort platform for sensor

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 360, in _async_setup_platform await asyncio.shield(task) File "/config/custom_components/thermal_comfort/sensor.py", line 435, in async_setup_entry entities: list[SensorThermalComfort] = [ ^ File "/config/custom_components/thermal_comfort/sensor.py", line 436, in SensorThermalComfort( File "/config/custom_components/thermal_comfort/sensor.py", line 480, in init self.entity_description.translation_key = sensor_type ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 4, in setattr dataclasses.FrozenInstanceError: cannot assign to field 'translation_key'

rautesamtr commented 6 months ago

354