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

Incorrect state class for device class warnings in HA #391

Open
fraserp opened this issue Jan 24, 2024 · 2 comments
Open

Incorrect state class for device class warnings in HA #391

fraserp opened this issue Jan 24, 2024 · 2 comments

Comments

@fraserp
Copy link

fraserp commented Jan 24, 2024

I am seeing the following warning in the Home Assistant Logs

Logger: homeassistant.components.sensor
Source: components/sensor/__init__.py:551
Integration: Sensor (documentation, issues)
First occurred: 13:39:11 (2 occurrences)
Last logged: 13:39:11

Entity sensor.electric_cost_today (<class 'custom_components.hildebrandglow_dcc.sensor.Cost'>) is using state class 'total_increasing' which is impossible considering device class ('monetary') it is using; expected None or one of 'total'; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/HandyHat/ha-hildebrandglow-dcc/issues
Entity sensor.gas_cost_today (<class 'custom_components.hildebrandglow_dcc.sensor.Cost'>) is using state class 'total_increasing' which is impossible considering device class ('monetary') it is using; expected None or one of 'total'; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/HandyHat/ha-hildebrandglow-dcc/issues
@chronvas
Copy link

Same log here

@smraper
Copy link

smraper commented Feb 10, 2024

another one here
Logger: homeassistant.components.sensor
Source: components/sensor/init.py:576
Integration: Sensor (documentation, issues)
First occurred: 23:40:38 (2 occurrences)
Last logged: 23:40:38

Entity sensor.dcc_sourced_smart_gas_meter_cost_today (<class 'custom_components.hildebrandglow_dcc.sensor.Cost'>) is using state class 'total_increasing' which is impossible considering device class ('monetary') it is using; expected None or one of 'total'; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/HandyHat/ha-hildebrandglow-dcc/issues
Entity sensor.dcc_sourced_smart_electricity_meter_cost_today (<class 'custom_components.hildebrandglow_dcc.sensor.Cost'>) is using state class 'total_increasing' which is impossible considering device class ('monetary') it is using; expected None or one of 'total'; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/HandyHat/ha-hildebrandglow-dcc/issues

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

No branches or pull requests

3 participants