Fix issue when a cast stereo pair is added to a cast group (#2480)
authorJohn <john@munro.cc>
Mon, 6 Oct 2025 17:32:24 +0000 (06:32 +1300)
committerGitHub <noreply@github.com>
Mon, 6 Oct 2025 17:32:24 +0000 (19:32 +0200)
* 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 <gavnosp@hotmail.com>
* Update helpers.py

Added code comments

* Update helpers.py comment added

line break to pass linting

---------

Co-authored-by: OzGav <gavnosp@hotmail.com>
Co-authored-by: Marcel van der Veldt <m.vanderveldt@outlook.com>
music_assistant/providers/chromecast/helpers.py

index f1e717d41eb8515a012bc741fd6d6b855721a4c8..acd140d2e4b17c784a856951f5c6008b2dee51bf 100644 (file)
@@ -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