mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +00:00
Update _dismissAll to use persistent_notification.dismiss_all service (#16997)
This commit is contained in:
parent
b3fa134198
commit
f19dcba1ce
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user