Inconistent docs/attributes for electricity currrent/previous accumulative cost #1127
Open
2 tasks done
Labels
bug
Something isn't working
Describe the bug
The documentation and attributes for the electricity current & previous accumulative cost sensors are inconsistent for the "total without standing charge" attribute.
The documentation states that the attribute name is
total_without_standing_charge
, but the actual attribute name in the code istotal_cost_without_standing_charge
.The equivalent attributes for gas entities are consistently
total_without_standing_charge
.Reproduction steps
View the attribute data for the current/previous electricity current accumulative costs sensors
Expected behaviour
Either:
total_cost_without_standing_charge
; ortotal_without_standing_charge
In my opinion, option 2 is preferable as it would make it consistent with the equivalent gas sensors, but would be a breaking change.
A third option would be to have both new and existing attributes and deprecate the current one. Not sure if deprecating attributes is a thing?
Tariff Code
N/A
Integration Version
13.3.0
Home Assistant Version
Core 2024.12.3; Supervisor 2024.12.0; Operating System 14.0; Frontend 20241127.8
Fresh Install?
Not specified
Home Assistant Logs
n/a
Confirmation
The text was updated successfully, but these errors were encountered: