mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 10:16:46 +00:00
Catch LL config not found exception in preload (#5340)
This commit is contained in:
parent
a17c1052cd
commit
cc046478e5
@ -92,12 +92,12 @@ window.hassConnection.then(({ conn }) => {
|
|||||||
subscribeFrontendUserData(conn, "core", noop);
|
subscribeFrontendUserData(conn, "core", noop);
|
||||||
|
|
||||||
if (location.pathname === "/" || location.pathname.startsWith("/lovelace/")) {
|
if (location.pathname === "/" || location.pathname.startsWith("/lovelace/")) {
|
||||||
(window as WindowWithLovelaceProm).llConfProm = fetchConfig(
|
const llWindow = window as WindowWithLovelaceProm;
|
||||||
conn,
|
llWindow.llConfProm = fetchConfig(conn, null, false);
|
||||||
null,
|
llWindow.llConfProm.catch(() => {
|
||||||
false
|
// Ignore it, it is handled by Lovelace panel.
|
||||||
);
|
});
|
||||||
(window as WindowWithLovelaceProm).llResProm = fetchResources(conn);
|
llWindow.llResProm = fetchResources(conn);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user