Skip to content

Bug: Unit of measurement error#273

Open
hectorzin wants to merge 2 commits intoAndre0512:mainfrom
hectorzin:main
Open

Bug: Unit of measurement error#273
hectorzin wants to merge 2 commits intoAndre0512:mainfrom
hectorzin:main

Conversation

@hectorzin
Copy link

@hectorzin hectorzin commented Dec 23, 2024

Home Assistant reported:

(<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', 'TW', 'GW', 'MW'];

it fixes the issue #201

This is the warning showed in the registry log:
 (<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', 'TW', 'GW', 'MW'];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant