Andre0512 / hon

Home Assistant integration for Haier hOn: support for Haier/Candy/Hoover home appliances like washing machines and air conditioners in 28 languages.
MIT License
1.3k stars 2.46k forks source link

Current energy wrong unit for power class #201

Open Theo16 opened 7 months ago

Theo16 commented 7 months ago

Describe the bug Warning in logs: Entity sensor.pralka_energy_current (<class 'custom_components.hon.sensor.HonSensorEntity'>) is using native unit of measurement 'kWh' which is not a valid unit for the device class ('power') it is using; expected one of ['W', 'kW']; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/Andre0512/hon/issues

Environment (please complete the following information):

dbdavid44 commented 2 months ago

Still occurring for me with the latest version

Logger: homeassistant.components.sensor
Source: components/sensor/__init__.py:731
integration: Sensor (documentation, issues)
First occurred: 4:17:09 PM (1 occurrences)
Last logged: 4:17:09 PM

Entity sensor.washing_machine_energy_consumption_current (<class 'custom_components.hon.sensor.HonSensorEntity'>) is using native unit of measurement 'kWh' which is not a valid unit for the device class ('power') it is using; expected one of ['kW', 'W']; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/Andre0512/hon/issues