Add tibber price sensor state class (#82189)

pull/82201/head
Martin Hjelmare 2022-11-16 15:12:08 +01:00 committed by GitHub
parent 5d78632d04
commit ecb7509333
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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"