Skip to content

Commit

Permalink
fix(media_player): fix bad reference to hass
Browse files Browse the repository at this point in the history
  • Loading branch information
alandtse committed Sep 15, 2019
1 parent d419b6f commit 3bf4ffb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/alexa_media/media_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ async def async_update(self):
# Device has not initialized yet
return
email = self._login.email
if email not in hass.data[DATA_ALEXAMEDIA]['accounts']:
if email not in self.hass.data[DATA_ALEXAMEDIA]['accounts']:
return
device = (self.hass.data[DATA_ALEXAMEDIA]
['accounts']
Expand Down

0 comments on commit 3bf4ffb

Please sign in to comment.