Compare commits

..
4 changed files with 20 additions and 15 deletions

No files matched your search

+2 -2
View File
@@ -113,7 +113,7 @@
"marked-footnote": "1.4.0",
"marked-gfm-heading-id": "4.1.4",
"memoize-one": "7.0.0",
"mermaid": "12.4.1",
"mermaid": "12.4.0",
"nanoid": "6.0.2",
"node-vibrant": "4.0.4",
"object-hash": "3.0.0",
@@ -191,7 +191,7 @@
"fs-extra": "11.4.1",
"generate-license-file": "4.2.5",
"glob": "15.0.0",
"globals": "17.15.0",
"globals": "17.14.0",
"gulp": "5.0.1",
"gulp-json-transform": "0.5.0",
"gulp-rename": "2.1.0",
+10 -10
View File
@@ -419,8 +419,8 @@ importers:
specifier: 7.0.0
version: 7.0.0
mermaid:
specifier: 12.4.1
version: 12.4.1
specifier: 12.4.0
version: 12.4.0
nanoid:
specifier: 6.0.2
version: 6.0.2
@@ -648,8 +648,8 @@ importers:
specifier: 15.0.0
version: 15.0.0
globals:
specifier: 17.15.0
version: 17.15.0
specifier: 17.14.0
version: 17.14.0
gulp:
specifier: 5.0.1
version: 5.0.1
@@ -5747,8 +5747,8 @@ packages:
resolution: {integrity: sha512-5lsx1NUDHtSjfg0eHlmYvZKv8/nVqX4ckFbM+FrGcQ+04KWcWFo9P5MxPZYSzUvyzmdTbI7Eix8Q4IbELDqzKg==}
engines: {node: '>=0.10.0'}
[email protected]5.0:
resolution: {integrity: sha512-OyBOdPnzu9B2lFpums9/4wcyNHx4haAxY2X5PgO9LqCvXJgKYMMr/1y4TU7om/vTy4eYqRsVes1ZTJEJYKap8Q==}
[email protected]4.0:
resolution: {integrity: sha512-UtdkTVyAJePQv0J2M9Xe4L0ruNSDV314XiIJsADI2Zf40bcdAonE/D/OhAU8AT99oij9mhLByb+NvA3QWZYgCg==}
engines: {node: '>=18'}
[email protected]:
@@ -6607,8 +6607,8 @@ packages:
resolution: {integrity: sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==}
engines: {node: '>= 8'}
[email protected].1:
resolution: {integrity: sha512-8uCLCSeow+N6CrNzAB54lbNFipC1DOPXZeOTeSlfvJaNUohg0A9eebmJNxs4Ik/OyEDqmF2thvyCzkwkmNnTtg==}
[email protected].0:
resolution: {integrity: sha512-j2gvsGUFeS/53WdYLl9H5G2YtMZX9G/PlCvV3E5Pf4j5XSnK19DwazU6wki7OTcKeYKed7+qujRDLhy8NV2zBg==}
engines: {node: '>=22.12.0'}
[email protected]:
@@ -14181,7 +14181,7 @@ snapshots:
is-windows: 1.0.2
which: 1.3.1
[email protected]5.0: {}
[email protected]4.0: {}
[email protected]:
dependencies:
@@ -15065,7 +15065,7 @@ snapshots:
[email protected]: {}
[email protected].1:
[email protected].0:
dependencies:
'@braintree/sanitize-url': 7.1.2
'@iconify/utils': 3.1.7
+1 -1
View File
@@ -205,7 +205,7 @@ window.hassConnection.then(({ conn }) => {
// Ignore it, it is handled by Lovelace panel.
});
}
if (location.pathname === "/" || location.pathname.startsWith("/lovelace/")) {
if (location.pathname === "/" || dashboardUrlPath) {
preloadWindow.llResProm = fetchResources(conn);
}
});
+7 -2
View File
@@ -322,8 +322,13 @@ export class LovelacePanel extends LitElement {
}
if (!resourcesLoaded) {
resourcesLoaded = true;
(preloadWindow.llResProm || fetchResources(this.hass!.connection)).then(
(resources) => loadLovelaceResources(resources, this.hass!)
const fetchDashboardResources = () =>
fetchResources(this.hass!.connection);
const resourcesProm =
preloadWindow.llResProm?.catch(fetchDashboardResources) ??
fetchDashboardResources();
resourcesProm.then((resources) =>
loadLovelaceResources(resources, this.hass!)
);
}
// Refreshing a YAML config can trigger an update event. We will ignore