Fix universal media_player mute (#9462)

This commit is contained in:
Colin Dunn 2017-09-19 05:42:31 +10:00 committed by Adam Mills
parent 392588e519
commit 15c3ea0d86

View File

@ -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)