Fix unmute bug in vlc_telnet (#48441)

If volume was muted and media_player.volume_up is fired, VLC would still
show up as muted.

PR extracted from #44776.
This commit is contained in:
David McClosky 2021-03-29 12:23:26 -04:00 committed by GitHub
parent 81ae0ee451
commit f815ebe9cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -249,6 +249,10 @@ class VlcDevice(MediaPlayerEntity):
self._vlc.set_volume(volume * MAX_VOLUME)
self._volume = volume
if self._muted and self._volume > 0:
# This can happen if we were muted and then see a volume_up.
self._muted = False
def media_play(self):
"""Send play command."""
self._vlc.play()