dolezsa / thermal_comfort

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

Does not start up with HA 2023.3.0 #280

Closed BebeMischa closed 1 year ago

BebeMischa commented 1 year ago

Hello,

after today's update of HA Thermal Comfort won't start up anymore.

Get this in the log:

Source: custom_components/thermal_comfort/sensor.py:423
Integration: Sensor (documentation, issues)
First occurred: 21:55:48 (1 occurrences)
Last logged: 21:55:48

Error while setting up thermal_comfort platform for sensor
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 293, in _async_setup_platform
    await asyncio.shield(task)
  File "/config/custom_components/thermal_comfort/sensor.py", line 420, in async_setup_platform
    sensors += [
  File "/config/custom_components/thermal_comfort/sensor.py", line 423, in <listcomp>
    entity_description=SensorEntityDescription(
TypeError: SensorEntityDescription.__init__() got an unexpected keyword argument 'native_precision'

Can you please have a look on it?

Thank you ;-)

Momentum6890 commented 1 year ago

Same issue here.

pSpitzner commented 1 year ago

related to the new frontend-configurable sensor precision: https://developers.home-assistant.io/blog/2023/02/08/sensor_presentation_rounding/

as a temporary workaround, you can search and replace "native_precision" with "suggested_display_precision" in /config/custom_components/thermal_comfort/sensor.py

ProTofik commented 1 year ago

related to the new frontend-configurable sensor precision: https://developers.home-assistant.io/blog/2023/02/08/sensor_presentation_rounding/

as a temporary workaround, you can search and replace "native_precision" with "suggested_display_precision" in /config/custom_components/thermal_comfort/sensor.py

Thanks. I got the same issue, I will just wait for an update fixing it.

Tt0x commented 1 year ago

as a temporary workaround, you can search and replace "native_precision" with "suggested_display_precision" in /config/custom_components/thermal_comfort/sensor.py

Thanks a lot @pSpitzner the fix worked perfectly fine for me!

simonepittis commented 1 year ago

Thanks, @pSpitzner the workaround works! waiting the final fix

T81 commented 1 year ago

Thanks for the quick resolution

marcpepper commented 1 year ago

Worked for me as well. Thanks so much for the quick fix!!

gzxto1 commented 1 year ago

Same for me thanks

pmfernandes commented 1 year ago

Thanks @pSpitzner. Workarround worked well here.

pmfernandes commented 1 year ago

@dolezsa this commit https://github.com/dolezsa/thermal_comfort/commit/b8e9cc695f8b358e0e80d2a7b5ff05bf68e91534 fixes the issue. Can you please create a new version of the addon?

bernikr commented 1 year ago

I can confirm that updating to "master" instead of 2.1.0 fixes the issue.

@dolezsa @rautesamtr Could you release this as a new version, so it gets fixed automatically for other people?

rautesamtr commented 1 year ago

Sorry for the wait. Just did the release. I had to wait for ha 2023.3 to be released since this is a breaking change beween 2023.2 and 2023.3

BebeMischa commented 1 year ago

Fixed. Thanks for the super fast response ;-)