dolezsa / thermal_comfort

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

native_precision error in HA 2023.3 #279

Closed pswid closed 1 year ago

pswid commented 1 year ago

HA 2023.3 (curently beta 2023.3.0b5) shows error in the log. According to this blog native_precision has been reverted and replaced by suggested_display_precision.

Logger: homeassistant.components.sensor Source: custom_components/thermal_comfort/sensor.py:473 Integration: Sensor (documentation, issues) First occurred: 10:20:34 (2 occurrences) Last logged: 10:20:34

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 470, in async_setup_entry
    entities: list[SensorThermalComfort] = [
  File "/config/custom_components/thermal_comfort/sensor.py", line 473, in <listcomp>
    entity_description=SensorEntityDescription(**SENSOR_TYPES[sensor_type]),
TypeError: SensorEntityDescription.__init__() got an unexpected keyword argument 'native_precision'
rautesamtr commented 1 year ago

276 already fixed #278 in master, wait for 2023.3 to be released for the next thermal comfort release since it requires home-assistant >= 2023.3