Fox UMP volume set (#6904)

async needs consistant paramater namming accross platforms. This fixes
UMP's volume set method by renaming the paramater.
This commit is contained in:
Dan authored and Paulus Schoutsen committed 2017-04-02 15:31:28 -07:00
1 parent 864b57d42c
commit f0027e3cc1
1 file changed
+2 -2
@@ -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)