dolezsa / thermal_comfort

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

Setup fails in Home Assistant 2024.1.0b1 #354

Closed daemonenstall closed 6 months ago

daemonenstall commented 6 months ago

The integration fails during setup in Home Assistant 2024.1.0b1

Logger: homeassistant.components.sensor Source: helpers/entity_platform.py:360 Integration: Sensor (documentation, issues) First occurred: 04:39:45 (1 occurrences) Last logged: 04:39:45

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 385, in async_setup_platform sensors += [ ^ File "/config/custom_components/thermal_comfort/sensor.py", line 386, 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

350

rautesamtr commented 6 months ago

Please use the master branch for non stable releases

yousaf465 commented 6 months ago

installed master branch but got this image

image

rautesamtr commented 6 months ago

That's strange do you have any different error messages? Could you do a clean reinstall of the component?

variada commented 6 months ago

I just downloaded the master branch manually and replaced the HACS version.

before and after the same as shown above. everything unavailable. been like this since updating to 2024.01(beta)


edit: I didn't find anything in the HA main log, so I started a debug log for Thermal Comfort, then reloaded the integration to see if anything turned up in the log. stopped the debug log again and looked through the resulting entries. - found nothing... BUT suddenly my sensors are back? I'm really stumped what's happening here. will keep reporting after next re-start/re-boot.