Fix default yaml lovelace panel loading (#29230)

This commit is contained in:
Paul Bottein 2026-01-28 23:32:46 +01:00 committed by GitHub
parent 9639403865
commit feb9ce421d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -368,11 +368,13 @@ export class LovelacePanel extends LitElement {
this._ignoreNextUpdateEvent = true;
}
confProm = fetchConfig(
this.hass!.connection,
this.urlPath,
forceDiskRefresh
);
// Keep lovelace yaml path for backward compatibility (until 2026.8)
const urlPath =
confMode === "yaml" && this.urlPath === "lovelace"
? null
: this.urlPath;
confProm = fetchConfig(this.hass!.connection, urlPath, forceDiskRefresh);
}
try {