diff --git a/music_assistant/client/players.py b/music_assistant/client/players.py index 7c57c1973..3173cabad 100644 --- a/music_assistant/client/players.py +++ b/music_assistant/client/players.py @@ -46,6 +46,10 @@ def get(self, player_id: str) -> Player | None: """Return Player by ID (or None if not found).""" return self._players.get(player_id) + def __getitem__(self, player_id: str) -> Player: + """Return Player by ID.""" + return self._players[player_id] + # Player related endpoints/commands async def player_command_stop(self, player_id: str) -> None: