Remove unused constant in Tibber (#60439)

This commit is contained in:
Daniel Hjelseth Høyer 2021-11-27 11:18:58 +01:00 committed by GitHub
parent d63e2d1db0
commit bb99d07d82
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -47,7 +47,6 @@ ICON = "mdi:currency-usd"
SCAN_INTERVAL = timedelta(minutes=1)
MIN_TIME_BETWEEN_UPDATES = timedelta(minutes=5)
PARALLEL_UPDATES = 0
SIGNAL_UPDATE_ENTITY = "tibber_rt_update_{}"
RT_SENSORS: tuple[SensorEntityDescription, ...] = (
@ -301,7 +300,7 @@ class TibberSensorElPrice(TibberSensor):
}
self._attr_icon = ICON
self._attr_name = f"Electricity price {self._home_name}"
self._attr_unique_id = f"{self._tibber_home.home_id}"
self._attr_unique_id = self._tibber_home.home_id
self._model = "Price Sensor"
self._device_name = self._attr_name