mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Remove mutable object from hvv sensor (#95454)
This commit is contained in:
parent
b2c0ca304b
commit
e0d1d16da1
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user