From: John Date: Mon, 6 Oct 2025 17:32:24 +0000 (+1300) Subject: Fix issue when a cast stereo pair is added to a cast group (#2480) X-Git-Url: https://git.kitaultman.com/?a=commitdiff_plain;h=07d342bf3bb2797eea511b511a17703b755e2511;p=music-assistant-server.git Fix issue when a cast stereo pair is added to a cast group (#2480) * Update helpers.py Fix: for Chromecast group with stereo pair and another speaker becomes unavailable https://github.com/music-assistant/support/issues/4106 * Update helpers.py Update for linting * Fix: Update helpers.py typo correction * Update music_assistant/providers/chromecast/helpers.py Co-authored-by: OzGav * Update helpers.py Added code comments * Update helpers.py comment added line break to pass linting --------- Co-authored-by: OzGav Co-authored-by: Marcel van der Veldt --- diff --git a/music_assistant/providers/chromecast/helpers.py b/music_assistant/providers/chromecast/helpers.py index f1e717d4..acd140d2 100644 --- a/music_assistant/providers/chromecast/helpers.py +++ b/music_assistant/providers/chromecast/helpers.py @@ -82,7 +82,13 @@ class ChromecastInfo: self.is_dynamic_group = self.uuid in dynamic_groups if self.uuid in multichannel_groups: self.is_multichannel_group = True - elif multichannel_groups: + elif ( + multichannel_groups + # Prevent a multichannel group being marked as a multichannel child + # if not in UUID list + and self.cast_type != "group" + and self.model_name != "Google Cast Group" + ): self.is_multichannel_child = True