mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 10:17:09 +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:
|
||||
"""Send new volume_level to device."""
|
||||
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:
|
||||
self._server.roonapi.change_volume_percent(self.output_id, 3)
|
||||
|
||||
def volume_down(self) -> None:
|
||||
"""Send new volume_level to device."""
|
||||
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:
|
||||
self._server.roonapi.change_volume_percent(self.output_id, -3)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user