ha-hildebrandglow-dcc icon indicating copy to clipboard operation
ha-hildebrandglow-dcc copied to clipboard

Incorrect state class for device class warnings in HA

Open fraserp opened this issue 5 months ago • 2 comments

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

fraserp avatar Jan 24 '24 14:01 fraserp

Same log here

chronvas avatar Jan 24 '24 21:01 chronvas

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

smraper avatar Feb 10 '24 23:02 smraper