Fix flickering toast (#20287)

This commit is contained in:
Bram Kragten 2024-03-30 14:40:13 +01:00 committed by GitHub
parent e8dc61ec36
commit f13dcb4139
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ class NotificationManager extends LitElement {
@query("ha-toast") private _toast!: HaToast | undefined;
public async showDialog(parameters: ShowToastParams) {
if (this._parameters) {
if (this._parameters && this._parameters.message !== parameters.message) {
this._parameters = undefined;
await this.updateComplete;
}