Cleanup new ha-config (#5906)

Remove changedProps check as its always true.
This commit is contained in:
J. Nick Koston
2020-05-17 11:59:50 +02:00
committed by GitHub
parent 512d35d2e0
commit 8fbdd88b24
3 changed files with 3 additions and 3 deletions
@@ -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);
}
}
+1 -1
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);
}
}
+1 -1
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);
}
}