From 2142b4bc0f22cf339e74e5197b66ba86b35fe46b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Lov=C3=A9n?= Date: Tue, 1 Oct 2019 22:31:24 +0200 Subject: [PATCH] Bugfix --- custom_components/browser_mod/light.py | 1 + custom_components/browser_mod/media_player.py | 1 + 2 files changed, 2 insertions(+) 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()