Fix double unsubscribe in todo list card (#20928)

This commit is contained in:
karwosts 2024-05-30 11:21:39 -07:00 committed by GitHub
parent 6f1fa139e7
commit 7416ae7dfd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -104,6 +104,7 @@ export class HuiTodoListCard extends LitElement implements LovelaceCard {
disconnectedCallback(): void { disconnectedCallback(): void {
super.disconnectedCallback(); super.disconnectedCallback();
this._unsubItems?.then((unsub) => unsub()); this._unsubItems?.then((unsub) => unsub());
this._unsubItems = undefined;
} }
public getCardSize(): number { public getCardSize(): number {