From 16704bea3e218005e2af0f48d5b0a1ffc2c81ae2 Mon Sep 17 00:00:00 2001 From: Marcel van der Veldt Date: Sat, 26 Oct 2024 00:24:39 +0200 Subject: [PATCH] Always reset sonos active session --- music_assistant/server/providers/sonos/provider.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/music_assistant/server/providers/sonos/provider.py b/music_assistant/server/providers/sonos/provider.py index 9ae4b0d75..2e95f68ba 100644 --- a/music_assistant/server/providers/sonos/provider.py +++ b/music_assistant/server/providers/sonos/provider.py @@ -221,7 +221,8 @@ async def play_media( "accept play_media command, it is synced to another player." ) raise PlayerCommandFailed(msg) - + # for now always reset the active session + sonos_player.client.player.group.active_session_id = None if airplay := sonos_player.get_linked_airplay_player(True): # linked airplay player is active, redirect the command self.logger.debug("Redirecting PLAY_MEDIA command to linked airplay player.")