Migrate to using dismiss_all for persistent_notification

This commit is contained in:
J. Nick Koston 2023-06-22 01:41:49 +02:00
parent 4ffd31974c
commit 72172cabc2
No known key found for this signature in database
1 changed files with 1 additions and 5 deletions

View File

@ -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();
}