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
parent
864b57d42c
commit
f0027e3cc1
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue