Skip to content

Commit

Permalink
fix: *_action more-info entity as a template was not evaluated
Browse files Browse the repository at this point in the history
Fix #734
  • Loading branch information
RomRider committed Jul 27, 2023
1 parent 947ed54 commit 02441b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/button-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1248,7 +1248,7 @@ class ButtonCard extends LitElement {
configDuplicate[action].data.entity_id = config.entity;
}
if (configDuplicate[action]?.entity) {
configDuplicate.entity = configDuplicate[action].entity;
configDuplicate.entity = this._getTemplateOrValue(this._stateObj, configDuplicate[action].entity);
}
configDuplicate[action] = __evalObject(configDuplicate[action]);
if (!configDuplicate[action].confirmation && configDuplicate.confirmation) {
Expand Down

0 comments on commit 02441b2

Please sign in to comment.