Fix stop command on some Home Assistant players (#2336)
authorJames E. Blair <corvus@inaugust.com>
Sat, 16 Aug 2025 09:43:36 +0000 (02:43 -0700)
committerGitHub <noreply@github.com>
Sat, 16 Aug 2025 09:43:36 +0000 (11:43 +0200)
music_assistant/providers/hass_players/player.py

index e613a8bb868d729484d267311ff82fafa4884a9d..ab3ce5768b5b27bb8d17ad46f2269e0ed929af91 100644 (file)
@@ -186,7 +186,7 @@ class HomeAssistantPlayer(Player):
             )
         except FailedCommand as exc:
             # some HA players do not support STOP
-            if "does not support this service" not in str(exc):
+            if "does not support" not in str(exc):
                 raise
             if PlayerFeature.PAUSE in self.supported_features:
                 await self.pause()