Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
akropp committed Jan 1, 2024
1 parent 33c3334 commit 2100ba8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions custom_components/savantaudio/media_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ async def _sync_output(self):
self._volume = (volume_raw + 38.0) / 38.0

self._attributes[ATTR_PASSTHRU] = self._output.passthru
self._attributes[ATTR_STEREO] = ~self._output.mono
self._attributes[ATTR_STEREO] = self._output.stereo
self._attributes[ATTR_DELAY_LEFT] = self._output.delay[0]
self._attributes[ATTR_DELAY_RIGHT] = self._output.delay[1]

Expand Down Expand Up @@ -414,10 +414,10 @@ def extra_state_attributes(self):
@property
def sound_mode(self):
modes = []
if self._output.mono:
modes.append('mono')
else:
if self._output.stereo:
modes.append('stereo')
else:
modes.append('mono')
if self._output.passthru: modes.append('passthru')
return ','.join(modes)

Expand Down

0 comments on commit 2100ba8

Please sign in to comment.