fix(templates): `variables` was `undefined` if none where provided.

Fix #718
This commit is contained in:
Jérôme Wiedemann 2023-07-26 09:49:14 +00:00
parent 529f954cec
commit fad332b80d
1 changed files with 1 additions and 1 deletions

View File

@ -171,7 +171,7 @@ class ButtonCard extends LitElement {
try {
this._evaledVariables = this._config!.variables
? this._objectEvalTemplate(this._stateObj, this._config!.variables)
: undefined;
: {};
return this._cardHtml();
} catch (e: any) {
if (e.stack) console.error(e.stack);