mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 02:37:08 +00:00
Fix bug in roon incremental volume control. (#105201)
This commit is contained in:
parent
de758fd7b3
commit
334673154c
@ -373,14 +373,14 @@ class RoonDevice(MediaPlayerEntity):
|
|||||||
def volume_up(self) -> None:
|
def volume_up(self) -> None:
|
||||||
"""Send new volume_level to device."""
|
"""Send new volume_level to device."""
|
||||||
if self._volume_incremental:
|
if self._volume_incremental:
|
||||||
self._server.roonapi.change_volume_raw(self.output_id, 1, "relative_step")
|
self._server.roonapi.change_volume_raw(self.output_id, 1, "relative")
|
||||||
else:
|
else:
|
||||||
self._server.roonapi.change_volume_percent(self.output_id, 3)
|
self._server.roonapi.change_volume_percent(self.output_id, 3)
|
||||||
|
|
||||||
def volume_down(self) -> None:
|
def volume_down(self) -> None:
|
||||||
"""Send new volume_level to device."""
|
"""Send new volume_level to device."""
|
||||||
if self._volume_incremental:
|
if self._volume_incremental:
|
||||||
self._server.roonapi.change_volume_raw(self.output_id, -1, "relative_step")
|
self._server.roonapi.change_volume_raw(self.output_id, -1, "relative")
|
||||||
else:
|
else:
|
||||||
self._server.roonapi.change_volume_percent(self.output_id, -3)
|
self._server.roonapi.change_volume_percent(self.output_id, -3)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user