Simplify hidden_by_default
authorMarcel van der Veldt <m.vanderveldt@outlook.com>
Thu, 19 Feb 2026 17:27:07 +0000 (18:27 +0100)
committerMarcel van der Veldt <m.vanderveldt@outlook.com>
Thu, 19 Feb 2026 17:27:07 +0000 (18:27 +0100)
music_assistant/providers/universal_player/player.py

index d50fc10f62f02084bba708045c0dff4ac44c76cc..78f023c2752e4797277cdcbe174618d0020e250d 100644 (file)
@@ -62,9 +62,6 @@ class UniversalPlayer(Player):
     @property
     def hidden_by_default(self) -> bool:
         """Return if the player should be hidden in the UI by default."""
-        if len(self.linked_output_protocols) == 0:
-            # If we have no linked protocols, hide by default
-            return True
         if self.device_info.model.lower() == "web browser":  # noqa: SIM103
             # hide web players by default
             return True
@@ -82,9 +79,6 @@ class UniversalPlayer(Player):
     @property
     def expose_to_ha_by_default(self) -> bool:
         """Return if the player should be exposed to Home Assistant by default."""
-        if len(self.linked_output_protocols) == 0:
-            # If we have no linked protocols, hide by default
-            return False
         if self.device_info.model.lower() == "web browser":  # noqa: SIM103
             # hide web players by default
             return False