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 Franck Nijhof
parent c5d1a0fbe1
commit 119c9c3a6b
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3

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)