Skip to content

Commit

Permalink
fix(media_player): allow volume set regardless of play_state
Browse files Browse the repository at this point in the history
  • Loading branch information
alandtse committed Jan 15, 2020
1 parent 69e7d80 commit 1ff35cf
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 @@ -889,7 +889,7 @@ async def async_mute_volume(self, mute):
- On mute, store volume and set volume to 0
- On unmute, set volume to previously stored volume
"""
if not (self.state == STATE_PLAYING and self.available):
if not self.available:
return

self._media_is_muted = mute
Expand Down

0 comments on commit 1ff35cf

Please sign in to comment.