Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Unit of measurement error #273

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

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