From a7f6ce307980c8e529412b7d2ee9f2d0cf3966d6 Mon Sep 17 00:00:00 2001 From: Simon Lamon <32477463+silamon@users.noreply.github.com> Date: Mon, 6 Nov 2023 15:53:23 +0100 Subject: [PATCH] Fix refresh in developer state tools (#18532) --- src/panels/developer-tools/state/developer-tools-state.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/panels/developer-tools/state/developer-tools-state.ts b/src/panels/developer-tools/state/developer-tools-state.ts index a47960a44288..ba32df918f23 100644 --- a/src/panels/developer-tools/state/developer-tools-state.ts +++ b/src/panels/developer-tools/state/developer-tools-state.ts @@ -167,7 +167,7 @@ class HaPanelDevState extends LitElement { )} @@ -349,6 +349,10 @@ class HaPanelDevState extends LitElement { private _entityIdChanged(ev: CustomEvent) { this._entityId = ev.detail.value; + this._updateEntity(); + } + + private _updateEntity() { if (!this._entityId) { this._entity = undefined; this._state = "";