diff --git a/custom_components/browser_mod/light.py b/custom_components/browser_mod/light.py index 321339d..bae91dc 100644 --- a/custom_components/browser_mod/light.py +++ b/custom_components/browser_mod/light.py @@ -16,6 +16,7 @@ class BrowserModLight(Light, BrowserModEntity): def __init__(self, hass, connection, deviceID, alias=None): super().__init__(hass, connection, deviceID, alias) + self.last_seen = None def updated(self): self.last_seen = datetime.now() diff --git a/custom_components/browser_mod/media_player.py b/custom_components/browser_mod/media_player.py index 6a0fcaa..538d7f5 100644 --- a/custom_components/browser_mod/media_player.py +++ b/custom_components/browser_mod/media_player.py @@ -28,6 +28,7 @@ class BrowserModPlayer(MediaPlayerDevice, BrowserModEntity): def __init__(self, hass, connection, deviceID, alias=None): super().__init__(hass, connection, deviceID, alias) + self.last_seen = None def updated(self): self.schedule_update_ha_state()