fix: variable which were objects were only evaluated once

This commit is contained in:
Jérôme Wiedemann 2023-07-29 00:07:40 +00:00
parent 976e53fbe9
commit e40bda9da6
1 changed files with 1 additions and 1 deletions

View File

@ -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],
);