Skip to content

Commit

Permalink
Merge pull request #498 from alandtse/#496
Browse files Browse the repository at this point in the history
fix: add check for loaded parent
  • Loading branch information
alandtse authored Jan 2, 2020
2 parents 281c383 + 951230d commit 2abfc76
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions custom_components/alexa_media/media_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,10 @@ async def refresh(self, device=None):
playing_parents = list(
filter(
lambda x: (
self.hass.data[DATA_ALEXAMEDIA]["accounts"][
self._login.email
]["entities"]["media_player"].get(x)
and
self.hass.data[DATA_ALEXAMEDIA]["accounts"][
self._login.email
]["entities"]["media_player"][x].state
Expand Down

0 comments on commit 2abfc76

Please sign in to comment.