mirror of
https://github.com/home-assistant/core.git
synced 2025-09-10 07:11:37 +02:00
Fix error on startup when no Apps or Radio plugins are installed for Squeezebox (#150267)
This commit is contained in:
@@ -157,6 +157,7 @@ class BrowseData:
|
||||
|
||||
cmd = ["apps", 0, browse_limit]
|
||||
result = await player.async_query(*cmd)
|
||||
if result["appss_loop"]:
|
||||
for app in result["appss_loop"]:
|
||||
app_cmd = "app-" + app["cmd"]
|
||||
if app_cmd not in self.known_apps_radios:
|
||||
@@ -168,6 +169,7 @@ class BrowseData:
|
||||
)
|
||||
cmd = ["radios", 0, browse_limit]
|
||||
result = await player.async_query(*cmd)
|
||||
if result["radioss_loop"]:
|
||||
for app in result["radioss_loop"]:
|
||||
app_cmd = "app-" + app["cmd"]
|
||||
if app_cmd not in self.known_apps_radios:
|
||||
|
Reference in New Issue
Block a user