Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasloven committed Oct 1, 2019
1 parent 613656a commit 2142b4b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions custom_components/browser_mod/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
1 change: 1 addition & 0 deletions custom_components/browser_mod/media_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 2142b4b

Please sign in to comment.