Fox UMP volume set (#6904)

async needs consistant paramater namming accross platforms. This fixes
UMP's volume set method by renaming the paramater.
pull/6607/head
Dan 2017-04-02 18:31:28 -04:00 committed by Paulus Schoutsen
parent 864b57d42c
commit f0027e3cc1
1 changed files with 2 additions and 2 deletions

View File

@ -425,12 +425,12 @@ class UniversalMediaPlayer(MediaPlayerDevice):
return self._async_call_service(
SERVICE_VOLUME_MUTE, data, allow_override=True)
def async_set_volume_level(self, volume_level):
def async_set_volume_level(self, volume):
"""Set volume level, range 0..1.
This method must be run in the event loop and returns a coroutine.
"""
data = {ATTR_MEDIA_VOLUME_LEVEL: volume_level}
data = {ATTR_MEDIA_VOLUME_LEVEL: volume}
return self._async_call_service(
SERVICE_VOLUME_SET, data, allow_override=True)