Fix backwards compatibility with HA client
authorMarcel van der Veldt <m.vanderveldt@outlook.com>
Sat, 6 Dec 2025 13:50:42 +0000 (14:50 +0100)
committerMarcel van der Veldt <m.vanderveldt@outlook.com>
Sat, 6 Dec 2025 13:50:42 +0000 (14:50 +0100)
music_assistant/models/provider.py

index 432e7439a8f97bf2c8b4ef8d781e1fb5710d4ad3..db5d62ecf83d595d80971a870802aad5f4ef7591 100644 (file)
@@ -146,6 +146,7 @@ class Provider:
             "default_name": self.default_name,
             "instance_name_postfix": self.instance_name_postfix,
             "instance_id": self.instance_id,
+            "lookup_key": self.instance_id,  # include for backwards compatibility
             "supported_features": [x.value for x in self.supported_features],
             "available": self.available,
             "is_streaming_provider": getattr(self, "is_streaming_provider", None),