Fix universal media_player mute (#9462)

This commit is contained in:
Colin Dunn authored and Adam Mills committed 2017-09-18 15:42:31 -04:00
1 parent 392588e519
commit 15c3ea0d86
1 file changed
+2 -2
@@ -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)