Skip to content

Commit

Permalink
Fix external media_player with empty name
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexxIT committed Oct 13, 2024
1 parent bb6b0eb commit ce0186b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions custom_components/yandex_station/core/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,7 @@ def get_media_players(hass: HomeAssistant, speaker_id: str) -> List[dict]:
"name": (
(entity.registry_entry and entity.registry_entry.name)
or entity.name
or entity.entity_id
),
}
for entity in ec.entities
Expand Down

0 comments on commit ce0186b

Please sign in to comment.