Pyhass / Hive-Custom-Component

A custom version of the home assistant hive component
MIT License
33 stars 17 forks source link

[BUG] target_temperature has unit None which is unsupported for device_class temperature #123

Closed holdestmade closed 2 years ago

holdestmade commented 2 years ago

Describe the bug Getting this in my log for all temperature entities, the unit of measurement seems to be missing ?

Since install of 2022.7.x

EDIT: I added the UOM in customize and all is working fine again now, no log warnings

Logger: homeassistant.components.sensor.recorder
Source: components/sensor/recorder.py:259
Integration: Sensor ([documentation](https://www.home-assistant.io/integrations/sensor), [issues](https://github.com/home-assistant/home-assistant/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+sensor%22))
First occurred: 10:20:10 am (30 occurrences)
Last logged: 10:20:10 am

sensor.living_room1_target_temperature has unit None which is unsupported for device_class temperature
sensor.living_room2_target_temperature has unit None which is unsupported for device_class temperature
sensor.toilet_target_temperature has unit None which is unsupported for device_class temperature
sensor.upstairs_target_temperature has unit None which is unsupported for device_class temperature
sensor.utility_room_target_temperature has unit None which is unsupported for device_class temperature

Expected behaviour A unit of measurement in the entities

ParDanMe87 commented 2 years ago

Having same issue, with current temperature and target:

The unit ('') of this entity doesn't match a unit of device class 'temperature'.

KJonline commented 2 years ago

This issue should be fixed in the new version of hive custom component 2022.7.3 Please can you retest

holdestmade commented 2 years ago

Yes, 2022.7.3 fixes it for me, many thanks