mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
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:
parent
864b57d42c
commit
f0027e3cc1
@ -425,12 +425,12 @@ class UniversalMediaPlayer(MediaPlayerDevice):
|
|||||||
return self._async_call_service(
|
return self._async_call_service(
|
||||||
SERVICE_VOLUME_MUTE, data, allow_override=True)
|
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.
|
"""Set volume level, range 0..1.
|
||||||
|
|
||||||
This method must be run in the event loop and returns a coroutine.
|
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(
|
return self._async_call_service(
|
||||||
SERVICE_VOLUME_SET, data, allow_override=True)
|
SERVICE_VOLUME_SET, data, allow_override=True)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user