You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This seems to be an error with the shouldUpdate function, as the evaluation of the Variables is carried out too late.
I've made the following change locally, which solves the problem for me:
old:
if (oldHass) {
for (const entity of this._config.entities) {
const evaluatedTemplate = this._evaluateTemplate(entity);
if (Boolean(this.hass && oldHass.states[evaluatedTemplate] !== this.hass.states[evaluatedTemplate])) {
return true;
}
}
return false;
}
new:
if (oldHass) {
for (const entity of this._evaluateTemplate(this._config.entities)) {
if (Boolean(this.hass && oldHass.states[entity] !== this.hass.states[entity])) {
return true;
}
}
return false;
}
The text was updated successfully, but these errors were encountered:
Checklist:
Release with the issue: Master Branch
Last working release (if known): unknown
Browser and Operating System: chrome 96.0.4664.110, Win 11
Description of problem:
entity list based of variables is not working for me.
For example:
or
Additional information:
This seems to be an error with the shouldUpdate function, as the evaluation of the Variables is carried out too late.
I've made the following change locally, which solves the problem for me:
old:
new:
The text was updated successfully, but these errors were encountered: