benlbrm / ha-hottoh-component

Custom Component for HottoH integration
MIT License
2 stars 3 forks source link

Unit_of_measurement is "None" #6

Open elkarto opened 2 years ago

elkarto commented 2 years ago

Version of the custom_component

V2021.12.4

Describe the bug

Hi @benlbrm , how are you?

The sensor entities has lost the unit_of_measurement property.

Home assistant recorder is throwing errors because of the lack of unit_of_measurement on the sensors provided by the stove integration.

In the temperature sensors case, which has device_class property, the error is:

sensor.xxxxx has unit None which is unsupported for device_class temperature

In other sensors, without device_class, the error is:

The normalized unit of sensor.xxxxx (None) does not match the unit of already compiled statistics (g/m or % depending which sensor is). Generation of long term statistics will be suppressed unless the unit changes back to g/m. Go to https://my.home-assistant.io/redirect/developer_statistics to fix this

This last error indicates that some time ago the sensor had unit of measurement, so this is a new problem.

The integration was not updated so perhaps some breaking changes after home assistant update are causing the problem.

benlbrm commented 2 years ago

@elkarto Hey, Sorry for the delay... As soon as I restart the stove I will have a look to that.

benlbrm commented 3 weeks ago

Hi, Is this error still occurs ?

elkarto commented 3 weeks ago

I don't think so.

All my sensors are now shown with unit of measurement, and the recorder does not throw any warning about them.