From 5422ef239b33b9b1c884a17376f522d013c4133d Mon Sep 17 00:00:00 2001 From: BasBruss <68892092+basbruss@users.noreply.github.com> Date: Fri, 3 Feb 2023 15:02:23 +0100 Subject: [PATCH] Fix monetary state class in tibber (#87274) state_class=SensorStateClass.TOTAL for monetary data --- homeassistant/components/tibber/sensor.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/tibber/sensor.py b/homeassistant/components/tibber/sensor.py index fb21ee10aeb..dec255208bb 100644 --- a/homeassistant/components/tibber/sensor.py +++ b/homeassistant/components/tibber/sensor.py @@ -191,13 +191,13 @@ RT_SENSORS: tuple[SensorEntityDescription, ...] = ( key="accumulatedReward", name="accumulated reward", device_class=SensorDeviceClass.MONETARY, - state_class=SensorStateClass.MEASUREMENT, + state_class=SensorStateClass.TOTAL, ), SensorEntityDescription( key="accumulatedCost", name="accumulated cost", device_class=SensorDeviceClass.MONETARY, - state_class=SensorStateClass.MEASUREMENT, + state_class=SensorStateClass.TOTAL, ), SensorEntityDescription( key="powerFactor", @@ -213,7 +213,7 @@ SENSORS: tuple[SensorEntityDescription, ...] = ( key="month_cost", name="Monthly cost", device_class=SensorDeviceClass.MONETARY, - state_class=SensorStateClass.MEASUREMENT, + state_class=SensorStateClass.TOTAL, ), SensorEntityDescription( key="peak_hour",