Fix bug in roon incremental volume control. (#105201)

This commit is contained in:
Greg Dowling
2023-12-07 10:00:26 +00:00
committed by GitHub
parent de758fd7b3
commit 334673154c

View File

@@ -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)