Skip to content

Commit

Permalink
fix(media_player): fix offline child
Browse files Browse the repository at this point in the history
  • Loading branch information
alandtse committed Jan 2, 2020
1 parent 08f57ae commit 41c9ba4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion custom_components/alexa_media/media_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,9 @@ async def refresh(self, device=None):
parent_session["lemurVolume"]["memberVolume"][
self.device_serial_number
]
if parent_session.get("lemurVolume", {}).get("memberVolume")
if parent_session.get("lemurVolume", {})
.get("memberVolume", {})
.get(self.device_serial_number)
else session["volume"]
)
session = {"playerInfo": session}
Expand Down

0 comments on commit 41c9ba4

Please sign in to comment.