From 88eb2fdec2a66fc32b89acf45f209c07197ca715 Mon Sep 17 00:00:00 2001 From: Marvin Schenkel Date: Tue, 23 Sep 2025 09:26:59 +0200 Subject: [PATCH] Fix: Handle player_ids being None --- music_assistant/providers/sonos/player.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/music_assistant/providers/sonos/player.py b/music_assistant/providers/sonos/player.py index 22db88be..bdaa577e 100644 --- a/music_assistant/providers/sonos/player.py +++ b/music_assistant/providers/sonos/player.py @@ -494,7 +494,7 @@ class SonosPlayer(Player): # if airplay mode is enabled, we could possibly receive child player id's that are # not Sonos players, but AirPlay players. We redirect those. airplay_child_ids = [x for x in player_ids_to_add or [] if x.startswith("ap")] - player_ids_to_add = [x for x in player_ids_to_add if x not in airplay_child_ids] + player_ids_to_add = [x for x in player_ids_to_add or [] if x not in airplay_child_ids] if airplay_child_ids: if ( airplay_player.active_source != self._attr_active_source -- 2.34.1