mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 19:18:20 +00:00
Fix bug in roon incremental volume control. (#105201)
This commit is contained in:
parent
c5d1a0fbe1
commit
119c9c3a6b
@ -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