From 07d342bf3bb2797eea511b511a17703b755e2511 Mon Sep 17 00:00:00 2001 From: John Date: Tue, 7 Oct 2025 06:32:24 +1300 Subject: [PATCH] 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 --- music_assistant/providers/chromecast/helpers.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 -- 2.34.1