mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-31 21:17:47 +00:00
Migrate to using dismiss_all for persistent_notification
This commit is contained in:
parent
4ffd31974c
commit
72172cabc2
@ -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