Remove mutable object from hvv sensor (#95454)

This commit is contained in:
Joost Lekkerkerker 2023-06-28 18:18:11 +02:00 committed by GitHub
parent b2c0ca304b
commit e0d1d16da1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -60,7 +60,6 @@ class HVVDepartureSensor(SensorEntity):
_attr_icon = ICON
_attr_translation_key = "departures"
_attr_has_entity_name = True
_attr_extra_state_attributes = {}
_attr_available = False
def __init__(self, hass, config_entry, session, hub):
@ -68,6 +67,7 @@ class HVVDepartureSensor(SensorEntity):
self.config_entry = config_entry
self.station_name = self.config_entry.data[CONF_STATION]["name"]
self._last_error = None
self._attr_extra_state_attributes = {}
self.gti = hub.gti