HandyHat / ha-hildebrandglow-dcc

Home Assistant integration for UK SMETS (Smart) meters pulling data from the DCC via the Hildebrand Glow API
MIT License
229 stars 31 forks source link

"using state class 'total_increasing' which is impossible" Auto Config #394

Open MarkRocketman opened 3 months ago

MarkRocketman commented 3 months ago

Describe the bug 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 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

Version 4.1.0

krzysnaw commented 3 months ago

custom_components/hildebrandglow_dcc/sensor.py Line 288 , change _attr_state_class = SensorStateClass.TOTAL_INCREASE
to
attr_state_class = SensorStateClass.TOTAL

snigehere commented 2 months ago

@krzysnaw Many thanks for posting the work around to this issue

Just to note that it was row 293 in my sensor file (version 1.0.3) .. no idea why as it was unchanged.