Skip to content

Commit

Permalink
Migrate to using dismiss_all for persistent_notification
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco committed Jun 21, 2023
1 parent 4ffd319 commit 72172ca
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/dialogs/notifications/notification-drawer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,7 @@ export class HuiNotificationDrawer extends LitElement {
}

private _dismissAll() {
this._notifications.forEach((notification) => {
this.hass.callService("persistent_notification", "dismiss", {
notification_id: notification.notification_id,
});
});
this.hass.callService("persistent_notification", "dismiss_all");
this.closeDialog();
}

Expand Down

0 comments on commit 72172ca

Please sign in to comment.