hon icon indicating copy to clipboard operation
hon copied to clipboard

Current energy wrong unit for power class

Open Theo16 opened this issue 1 year ago • 1 comments

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):

  • Home Assistant Version: [2024.4.4]
  • hOn Integration Version [v0.14.0-beta.7]
  • pyhOn Version [v0.17.4]

Theo16 avatar Apr 26 '24 08:04 Theo16

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

dbdavid44 avatar Sep 06 '24 14:09 dbdavid44