Cast fix for urlPath === "lovelace" (#5242)

This commit is contained in:
Bram Kragten 2020-03-18 12:19:01 +01:00 committed by GitHub
parent 1e527a8350
commit 71793dcfa5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -172,6 +172,9 @@ export class HcMain extends HassElement {
return;
}
if (!this._unsubLovelace || this._urlPath !== msg.urlPath) {
if (msg.urlPath === "lovelace") {
msg.urlPath = null;
}
this._urlPath = msg.urlPath;
if (this._unsubLovelace) {
this._unsubLovelace();