From ecb7509333d02817ae552cb8fb3a7ca32c310790 Mon Sep 17 00:00:00 2001 From: Martin Hjelmare Date: Wed, 16 Nov 2022 15:12:08 +0100 Subject: [PATCH] Add tibber price sensor state class (#82189) --- homeassistant/components/tibber/sensor.py | 1 + 1 file changed, 1 insertion(+) diff --git a/homeassistant/components/tibber/sensor.py b/homeassistant/components/tibber/sensor.py index 4dcc4a8a777..73e9db08c03 100644 --- a/homeassistant/components/tibber/sensor.py +++ b/homeassistant/components/tibber/sensor.py @@ -350,6 +350,7 @@ class TibberSensorElPrice(TibberSensor): } self._attr_icon = ICON self._attr_name = f"Electricity price {self._home_name}" + self._attr_state_class = SensorStateClass.MEASUREMENT self._attr_unique_id = self._tibber_home.home_id self._model = "Price Sensor"