mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 19:57:07 +00:00
Fix universal media_player mute (#9462)
This commit is contained in:
parent
392588e519
commit
15c3ea0d86
@ -422,12 +422,12 @@ class UniversalMediaPlayer(MediaPlayerDevice):
|
||||
"""
|
||||
return self._async_call_service(SERVICE_TURN_OFF, allow_override=True)
|
||||
|
||||
def async_mute_volume(self, is_volume_muted):
|
||||
def async_mute_volume(self, mute):
|
||||
"""Mute the volume.
|
||||
|
||||
This method must be run in the event loop and returns a coroutine.
|
||||
"""
|
||||
data = {ATTR_MEDIA_VOLUME_MUTED: is_volume_muted}
|
||||
data = {ATTR_MEDIA_VOLUME_MUTED: mute}
|
||||
return self._async_call_service(
|
||||
SERVICE_VOLUME_MUTE, data, allow_override=True)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user