mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Add tibber price sensor state class (#82189)
This commit is contained in:
parent
5d78632d04
commit
ecb7509333
@ -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"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user