Skip to content

Commit

Permalink
Fix change entity in dev tools state (#18441)
Browse files Browse the repository at this point in the history
  • Loading branch information
silamon authored Oct 27, 2023
1 parent d3cc57d commit 951b88a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/panels/developer-tools/state/developer-tools-state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
></ha-entity-picker>
Expand Down Expand Up @@ -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 = "";
Expand Down

0 comments on commit 951b88a

Please sign in to comment.