fix: variable which were objects were only evaluated once
This commit is contained in:
parent
976e53fbe9
commit
e40bda9da6
|
@ -185,7 +185,7 @@ class ButtonCard extends LitElement {
|
|||
if (this._config?.variables) {
|
||||
const variablesNameOrdered = Object.keys(this._config.variables).sort();
|
||||
variablesNameOrdered.forEach((variable) => {
|
||||
this._evaledVariables[variable] = this._getTemplateOrValue(
|
||||
this._evaledVariables[variable] = this._objectEvalTemplate(
|
||||
this._stateObj,
|
||||
this._config!.variables![variable],
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue