From 21312920762c664c0850ecb46d80594810d96a84 Mon Sep 17 00:00:00 2001 From: Joostlek Date: Fri, 5 Apr 2024 10:48:14 +0200 Subject: [PATCH] Fix cast dashboard in media browser --- homeassistant/components/lovelace/cast.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/lovelace/cast.py b/homeassistant/components/lovelace/cast.py index 02f5d0c0478ca5..82a92b94ae5d8d 100644 --- a/homeassistant/components/lovelace/cast.py +++ b/homeassistant/components/lovelace/cast.py @@ -179,7 +179,7 @@ async def _get_dashboard_info(hass, url_path): "views": views, } - if config is None: + if config is None or "views" not in config: return data for idx, view in enumerate(config["views"]):