From 951b88ab4cb43704410d2f4a04e2d35d224944cb Mon Sep 17 00:00:00 2001 From: Simon Lamon <32477463+silamon@users.noreply.github.com> Date: Fri, 27 Oct 2023 13:27:01 +0200 Subject: [PATCH] Fix change entity in dev tools state (#18441) --- src/panels/developer-tools/state/developer-tools-state.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/panels/developer-tools/state/developer-tools-state.ts b/src/panels/developer-tools/state/developer-tools-state.ts index 6265b89f1eb0..a47960a44288 100644 --- a/src/panels/developer-tools/state/developer-tools-state.ts +++ b/src/panels/developer-tools/state/developer-tools-state.ts @@ -125,7 +125,7 @@ class HaPanelDevState extends LitElement { autofocus .hass=${this.hass} .value=${this._entityId} - @change=${this._entityIdChanged} + @value-changed=${this._entityIdChanged} allow-custom-entity item-label-path="entity_id" > @@ -347,7 +347,8 @@ class HaPanelDevState extends LitElement { ev.preventDefault(); } - private _entityIdChanged() { + private _entityIdChanged(ev: CustomEvent) { + this._entityId = ev.detail.value; if (!this._entityId) { this._entity = undefined; this._state = "";