shenxn / ha-dyson

HomeAssitant custom integration for dyson
MIT License
307 stars 59 forks source link

Core 2022.2.0: Sensor has device class temperature, state class measurement and unit °C with non-numeric value: off #181

Open ghost opened 1 year ago

ghost commented 1 year ago

Since upgrading to HA core 2022.0, 2 of my fans have this warning in the logs yet a 3rd one does not.

The log entries are:

Sensor sensor.pure_hot_cool_temperature has device class temperature, state class measurement and unit °C thus indicating it has a numeric value; however, it has the non-numeric value: off (<class 'str'>); Please update your configuration if your entity is manually configured, otherwise report it to the custom integration author.
Sensor sensor.pure_cool_temperature has device class temperature, state class measurement and unit °C thus indicating it has a numeric value; however, it has the non-numeric value: off (<class 'str'>); Please update your configuration if your entity is manually configured, otherwise report it to the custom integration author.

The 3rd fan's sensor (Sensor sensor.pure_hot_cool_temperature_2) has the exact same state with no error.

Screenshot 2023-02-03 at 09 38 03


edit: after a restart, the 3rd fan showed the same log entry.

Sensor sensor.pure_cool_temperature_2 has device class temperature, state class measurement and unit °C thus indicating it has a numeric value; however, it has the non-numeric value: off (<class 'str'>); Please update your configuration if your entity is manually configured, otherwise report it to the custom integration author.