fix: Improve reliability of connection cleanup (#2009)

- Closes #1992
This commit is contained in:
Dermot Duffy
2025-04-14 16:58:17 +01:00
committed by GitHub
parent da17c689b8
commit 54ee1e1cf3
7 changed files with 25 additions and 3 deletions
+1
View File
@@ -40,6 +40,7 @@ export class AdvancedCameraCardZoomer extends LitElement {
this._zoom?.deactivate();
this.removeEventListener('advanced-camera-card:zoom:zoomed', this._zoomHandler);
this.removeEventListener('advanced-camera-card:zoom:unzoomed', this._unzoomHandler);
super.disconnectedCallback();
}
protected willUpdate(changedProps: PropertyValues): void {