From e94699ad00481fd69e20afc92be6bd4a40dd785f Mon Sep 17 00:00:00 2001 From: Daniel Raper Date: Fri, 22 Mar 2024 09:41:57 +0000 Subject: [PATCH] Change energy sensor to total_increasing --- custom_components/ohme/sensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/ohme/sensor.py b/custom_components/ohme/sensor.py index 8d0868d..ba091f5 100644 --- a/custom_components/ohme/sensor.py +++ b/custom_components/ohme/sensor.py @@ -268,7 +268,7 @@ class EnergyUsageSensor(CoordinatorEntity[OhmeChargeSessionsCoordinator], Sensor _attr_suggested_unit_of_measurement = UnitOfEnergy.KILO_WATT_HOUR _attr_suggested_display_precision = 1 _attr_device_class = SensorDeviceClass.ENERGY - _attr_state_class = SensorStateClass.TOTAL + _attr_state_class = SensorStateClass.TOTAL_INCREASING def __init__( self,