From b2309d117ba85943bdbc245b302e6f0a041f6a23 Mon Sep 17 00:00:00 2001 From: Tom Whittock Date: Sat, 30 Mar 2024 21:15:57 +0000 Subject: [PATCH] Use total state class, not total_increasing. Fixes #2 --- custom_components/eo_mini/sensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/eo_mini/sensor.py b/custom_components/eo_mini/sensor.py index fb12d15..4c2aa96 100644 --- a/custom_components/eo_mini/sensor.py +++ b/custom_components/eo_mini/sensor.py @@ -38,7 +38,7 @@ def __init__(self, *args): key=SensorDeviceClass.ENERGY, native_unit_of_measurement=UnitOfEnergy.WATT_HOUR, device_class=SensorDeviceClass.ENERGY, - state_class=SensorStateClass.TOTAL_INCREASING, + state_class=SensorStateClass.TOTAL, name="Consumption", ) super().__init__(*args)