From 4e554607995785bac201fef1fb00aef6aa8dbd4e Mon Sep 17 00:00:00 2001 From: Bram Kragten Date: Thu, 3 Feb 2022 16:54:26 +0100 Subject: [PATCH] =?UTF-8?q?Clear=20old=20src=20when=20disconnected=20so=20?= =?UTF-8?q?we=20can't=20fetch=20it=20with=20the=20wrong=20t=E2=80=A6=20(#1?= =?UTF-8?q?1528)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/panels/lovelace/components/hui-image.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/panels/lovelace/components/hui-image.ts b/src/panels/lovelace/components/hui-image.ts index 23510d29d3..fcf1654a0a 100644 --- a/src/panels/lovelace/components/hui-image.ts +++ b/src/panels/lovelace/components/hui-image.ts @@ -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")) {