Fix players unavailable of cast and bluesound provider (#3027)
authorMarcel van der Veldt <m.vanderveldt@outlook.com>
Mon, 26 Jan 2026 23:23:19 +0000 (00:23 +0100)
committerGitHub <noreply@github.com>
Mon, 26 Jan 2026 23:23:19 +0000 (00:23 +0100)
music_assistant/providers/bluesound/player.py
music_assistant/providers/chromecast/player.py

index bd6a5560f718b30fed620a3d97e6dd55b95fec0d..f00e8c6011d8346fa6772c8177b7d4bbd2cc9a7f 100644 (file)
@@ -67,8 +67,8 @@ class BluesoundPlayer(Player):
         self._attr_device_info = DeviceInfo(
             model=discovery_info.get("model", "BluOS Device"),
             manufacturer="BluOS",
-            ip_address=ip_address,
         )
+        self._attr_device_info.ip_address = ip_address
         self._attr_available = True
         self._attr_source_list = []
         self._attr_needs_poll = True
index 115756166f16737e684da0f9c220cb5ba4fec752..ae3f358cc7ac1bd32a6dde8fdf61b5d2561d6557 100644 (file)
@@ -107,9 +107,9 @@ class ChromecastPlayer(Player):
 
         self._attr_device_info = DeviceInfo(
             model=self.cast_info.model_name,
-            ip_address=f"{self.cast_info.host}:{self.cast_info.port}",
             manufacturer=self.cast_info.manufacturer or "",
         )
+        self._attr_device_info.ip_address = self.cast_info.host
         assert provider.mz_mgr is not None  # for type checking
         status_listener = CastStatusListener(self, provider.mz_mgr)
         self.status_listener = status_listener
@@ -768,9 +768,9 @@ class ChromecastPlayer(Player):
             self._attr_available = new_available
             self._attr_device_info = DeviceInfo(
                 model=self.cast_info.model_name,
-                ip_address=f"{self.cast_info.host}:{self.cast_info.port}",
                 manufacturer=self.cast_info.manufacturer or "",
             )
+            self._attr_device_info.ip_address = self.cast_info.host
             self.mass.loop.call_soon_threadsafe(self.update_state)
 
             if new_available and self.type == PlayerType.PLAYER: