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

sensor state class 'total_increasing' is invalid for 'monetary' values #322

Closed
Achronite opened this issue Mar 28, 2023 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@Achronite
Copy link

Describe the bug
The sensors dcc_sourced_smart_gas_meter_cost_today and dcc_sourced_smart_electricity_meter_cost_today are incorrectly defined within HA due to incompatibility between state 'total_increasing' and device class 'monetary'.
e.g.
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'

To Reproduce
Restart HA, look at system logs.

Expected behaviour
DCC sensors should to be defined correctly within HA to operate correctly

Screenshots
From system logs (HA Core v2023.3.6)
Logger: homeassistant.components.sensor
Source: components/sensor/init.py:497
Integration: Sensor (documentation, issues)
First occurred: 10:00:36 (2 occurrences)
Last logged: 10:00:37

  • 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 report it to the custom integration author.
  • 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 report it to the custom integration author.

Version
v1.0.3
HA Core v2023.3.6

Debug log
Not required

Additional context
Problem reported at startup of HA

@Achronite Achronite added the bug Something isn't working label Mar 28, 2023
@HandyHat
Copy link
Owner

HandyHat commented Apr 1, 2023

Hey @Achronite, it looks like this is the same issue as #304. Feel free to follow that issue!

Duplicate of #304

@HandyHat HandyHat closed this as not planned Won't fix, can't repro, duplicate, stale Apr 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants