Skip to content

Commit

Permalink
Fix state class for energy_charged_energy (again)
Browse files Browse the repository at this point in the history
Signed-off-by: Jean-Louis Dupond <[email protected]>
  • Loading branch information
dupondje committed Dec 31, 2024
1 parent 7b9876f commit 5cdcfd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/nrgkick/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ class NRGKickSensorEntityDescription(SensorEntityDescription, NRGKickMixin):
),
NRGKickSensorEntityDescription(
key="energy_charged_energy",
state_class=SensorStateClass.MEASUREMENT,
state_class=SensorStateClass.TOTAL_INCREASING,
device_class=SensorDeviceClass.ENERGY,
native_unit_of_measurement=UnitOfEnergy.WATT_HOUR,
suggested_unit_of_measurement=UnitOfEnergy.KILO_WATT_HOUR,
Expand Down

0 comments on commit 5cdcfd7

Please sign in to comment.