mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-21 08:16:36 +00:00
Cleanup new ha-config (#5906)
Remove changedProps check as its always true.
This commit is contained in:
parent
512d35d2e0
commit
8fbdd88b24
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user