From f19dcba1ce911edd696d109f71acd4c23b373b8f Mon Sep 17 00:00:00 2001 From: Petro31 <35082313+Petro31@users.noreply.github.com> Date: Thu, 22 Jun 2023 08:28:07 -0400 Subject: [PATCH] Update _dismissAll to use persistent_notification.dismiss_all service (#16997) --- src/dialogs/notifications/notification-drawer.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/dialogs/notifications/notification-drawer.ts b/src/dialogs/notifications/notification-drawer.ts index 5b4eacb27e..b11a45a345 100644 --- a/src/dialogs/notifications/notification-drawer.ts +++ b/src/dialogs/notifications/notification-drawer.ts @@ -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(); }