Fix small typo in Music Assistant integration causing unavailable players (#142535)

Fix small typo in Music Assistant integration causing issues with adding players
pull/135605/head^2
Marcel van der Veldt 2025-04-08 15:44:35 +02:00 committed by GitHub
parent 0ed7348d2d
commit 12fc458abb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -151,6 +151,9 @@ async def async_setup_entry(
assert event.object_id is not None
if event.object_id in added_ids:
return
player = mass.players.get(event.object_id)
if TYPE_CHECKING:
assert player is not None
if not player.expose_to_ha:
return
added_ids.add(event.object_id)