mirror of
https://github.com/home-assistant/frontend.git
synced 2025-08-01 13:37: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() {
|
private _dismissAll() {
|
||||||
this._notifications.forEach((notification) => {
|
this.hass.callService("persistent_notification", "dismiss_all");
|
||||||
this.hass.callService("persistent_notification", "dismiss", {
|
|
||||||
notification_id: notification.notification_id,
|
|
||||||
});
|
|
||||||
});
|
|
||||||
this.closeDialog();
|
this.closeDialog();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user