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

use correct state_class for charging_power #44

Merged
merged 1 commit into from
Jan 2, 2024

Conversation

ronaldt80
Copy link
Contributor

State class total is not correct for power entities - changed to measurement. This solves error message in HA log:

Entity sensor.wallbox_charging_power (<class 'homeassistant.components.mqtt.sensor.MqttSensor'>) is using state class 'total' which is impossible considering device class ('power') it is using; expected None or one of 'measurement'; 
Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+mqtt%22

State class total is not correct for power entities - changed to measurement
@jagheterfredrik jagheterfredrik changed the title Update sensors.go use correct state_class for charging_power Jan 2, 2024
@jagheterfredrik
Copy link
Owner

Makes sense to me, thanks 👍

@jagheterfredrik jagheterfredrik merged commit 97f8f1a into jagheterfredrik:main Jan 2, 2024
1 check passed
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.

2 participants