From 2100ba891f61bcd9d63179720444180795201f38 Mon Sep 17 00:00:00 2001 From: Adam Kropp <30504149+akropp@users.noreply.github.com> Date: Sun, 31 Dec 2023 21:01:05 -0500 Subject: [PATCH] fix --- custom_components/savantaudio/media_player.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/custom_components/savantaudio/media_player.py b/custom_components/savantaudio/media_player.py index ee95909..370c26f 100644 --- a/custom_components/savantaudio/media_player.py +++ b/custom_components/savantaudio/media_player.py @@ -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] @@ -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)