Cleanup new ha-config (#5906)

Remove changedProps check as its always true.
This commit is contained in:
J. Nick Koston 2020-05-17 04:59:50 -05:00 committed by GitHub
parent 512d35d2e0
commit 8fbdd88b24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -76,7 +76,7 @@ class HaConfigAutomation extends HassRouterPage {
if (this.hass) {
if (!pageEl.automations || !changedProps) {
pageEl.automations = this._getAutomations(this.hass.states);
} else if (changedProps && changedProps.has("hass")) {
} else if (changedProps.has("hass")) {
this._debouncedUpdateAutomations(pageEl);
}
}

View File

@ -68,7 +68,7 @@ class HaConfigScene extends HassRouterPage {
if (this.hass) {
if (!pageEl.scenes || !changedProps) {
pageEl.scenes = this._getScenes(this.hass.states);
} else if (changedProps && changedProps.has("hass")) {
} else if (changedProps.has("hass")) {
this._debouncedUpdateScenes(pageEl);
}
}

View File

@ -73,7 +73,7 @@ class HaConfigScript extends HassRouterPage {
if (this.hass) {
if (!pageEl.scripts || !changedProps) {
pageEl.scripts = this._getScripts(this.hass.states);
} else if (changedProps && changedProps.has("hass")) {
} else if (changedProps.has("hass")) {
this._debouncedUpdateScripts(pageEl);
}
}