mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Fix change entity in dev tools state (#18441)
This commit is contained in:
parent
d3cc57d8b4
commit
951b88ab4c
@ -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>
|
||||
@ -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 = "";
|
||||
|
Loading…
x
Reference in New Issue
Block a user