mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 09:17:10 +00:00
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:
parent
81ae0ee451
commit
f815ebe9cd
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user