mirror of
https://github.com/home-assistant/core.git
synced 2025-07-13 16:27:08 +00:00
Check Sonos for local library before browsing (#40085)
This commit is contained in:
parent
2ea604cc2a
commit
8236394b85
@ -1547,6 +1547,13 @@ def library_payload(media_library):
|
||||
|
||||
Used by async_browse_media.
|
||||
"""
|
||||
if not media_library.browse_by_idstring(
|
||||
"tracks",
|
||||
"",
|
||||
max_items=1,
|
||||
):
|
||||
raise BrowseError("Local library not found")
|
||||
|
||||
children = []
|
||||
for item in media_library.browse():
|
||||
try:
|
||||
|
Loading…
x
Reference in New Issue
Block a user