From 067cab71fabbae7a9e1bf6e9639244bc733e74fe Mon Sep 17 00:00:00 2001 From: peteS-UK <64092177+peteS-UK@users.noreply.github.com> Date: Tue, 12 Aug 2025 10:55:21 +0100 Subject: [PATCH] Additional Fix error on startup when no Apps or Radio plugins are installed for Squeezebox (#150475) --- homeassistant/components/squeezebox/browse_media.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/squeezebox/browse_media.py b/homeassistant/components/squeezebox/browse_media.py index e14f1989cbe..cebd4fcb04f 100644 --- a/homeassistant/components/squeezebox/browse_media.py +++ b/homeassistant/components/squeezebox/browse_media.py @@ -157,7 +157,7 @@ class BrowseData: cmd = ["apps", 0, browse_limit] result = await player.async_query(*cmd) - if result["appss_loop"]: + if result and result.get("appss_loop"): for app in result["appss_loop"]: app_cmd = "app-" + app["cmd"] if app_cmd not in self.known_apps_radios: @@ -169,7 +169,7 @@ class BrowseData: ) cmd = ["radios", 0, browse_limit] result = await player.async_query(*cmd) - if result["radioss_loop"]: + if result and result.get("radioss_loop"): for app in result["radioss_loop"]: app_cmd = "app-" + app["cmd"] if app_cmd not in self.known_apps_radios: