From c09c8f424f4da24144eccca22dd98dc7f139d285 Mon Sep 17 00:00:00 2001 From: b-pass Date: Sat, 16 Oct 2021 17:52:30 -0400 Subject: [PATCH] Set state class in JuiceNet component (#57870) --- homeassistant/components/juicenet/sensor.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/homeassistant/components/juicenet/sensor.py b/homeassistant/components/juicenet/sensor.py index 4eaaba41b55..0b39bcd3507 100644 --- a/homeassistant/components/juicenet/sensor.py +++ b/homeassistant/components/juicenet/sensor.py @@ -3,6 +3,7 @@ from __future__ import annotations from homeassistant.components.sensor import ( STATE_CLASS_MEASUREMENT, + STATE_CLASS_TOTAL_INCREASING, SensorEntity, SensorEntityDescription, ) @@ -66,6 +67,7 @@ SENSOR_TYPES: tuple[SensorEntityDescription, ...] = ( name="Energy added", native_unit_of_measurement=ENERGY_WATT_HOUR, device_class=DEVICE_CLASS_ENERGY, + state_class=STATE_CLASS_TOTAL_INCREASING, ), )