Don't try load_lovelace until it succeeds.
This commit is contained in:
parent
a38da04024
commit
8790289006
@ -44,10 +44,9 @@ export function load_lovelace() {
|
||||
if(customElements.get("hui-view")) return true;
|
||||
|
||||
const res = document.createElement("partial-panel-resolver");
|
||||
res.hass = undefined;
|
||||
while(!res.hass || !res.hass.panels) {
|
||||
res.hass = hass();
|
||||
}
|
||||
if(!res.hass || !res.hass.panels)
|
||||
return false;
|
||||
res.route = {path: "/lovelace/"};
|
||||
res._updateRoutes();
|
||||
try {
|
||||
|
Loading…
x
Reference in New Issue
Block a user