Clear old src when disconnected so we can't fetch it with the wrong t… (#11528)

This commit is contained in:
Bram Kragten
2022-02-03 16:54:26 +01:00
committed by GitHub
parent 5fde6e659d
commit 4e55460799

View File

@@ -106,6 +106,9 @@ export class HuiImage extends LitElement {
} else if (!this.hass!.connected) {
this._stopUpdateCameraInterval();
this._stopIntersectionObserver();
this._loadState = LoadState.Loading;
this._cameraImageSrc = undefined;
this._loadedImageSrc = undefined;
}
}
if (changedProps.has("_imageVisible")) {