Skip to content

Commit

Permalink
fix bug causing empty entity_id stored in notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsfaber committed Oct 30, 2024
1 parent c532700 commit 73e1be8
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ export class NotificationEditorCard extends LitElement {
if (this.item) {
let actions = [...this.item.actions];
this.config = { ...this.item, actions: [actions[0], ...actions.slice(1)] };
if (this.config.actions[0].entity_id === null) Object.assign(this.config.actions, { [0]: omit(this.config.actions[0], 'entity_id') });
if (this.config.triggers.length > 1) this.config = { ...this.config, triggers: [this.config.triggers[0]] };

let area = this.config.triggers[0].area;
Expand Down

0 comments on commit 73e1be8

Please sign in to comment.