Skip to content

Commit

Permalink
some more fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
RomRider committed Jul 30, 2023
1 parent f8ad528 commit 9e3b50e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/button-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,10 +213,10 @@ class ButtonCard extends LitElement {
});
} else if (typeof this._config!.triggers_update === 'string') {
const result = this._getTemplateOrValue(this._stateObj, this._config!.triggers_update);
if (result !== 'all') {
if (result && result !== 'all') {
this._entities.push(result);
} else {
this._config.triggers_update = 'all';
this._config.triggers_update = result;
}
}
if (this._config!.triggers_update !== 'all') {
Expand Down

0 comments on commit 9e3b50e

Please sign in to comment.