Add tibber price sensor state class (#82189)

This commit is contained in:
Martin Hjelmare
2022-11-16 15:12:08 +01:00
committed by GitHub
parent 5d78632d04
commit ecb7509333

View File

@@ -350,6 +350,7 @@ class TibberSensorElPrice(TibberSensor):
} }
self._attr_icon = ICON self._attr_icon = ICON
self._attr_name = f"Electricity price {self._home_name}" 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._attr_unique_id = self._tibber_home.home_id
self._model = "Price Sensor" self._model = "Price Sensor"