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…
Reference in New Issue