Skip to content

Commit

Permalink
Fix bug in roon incremental volume control. (#105201)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavoni authored Dec 7, 2023
1 parent de758fd commit 3346731
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions homeassistant/components/roon/media_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,14 +373,14 @@ def mute_volume(self, mute=True):
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)

Expand Down

0 comments on commit 3346731

Please sign in to comment.