mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 03:06:41 +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
|
autofocus
|
||||||
.hass=${this.hass}
|
.hass=${this.hass}
|
||||||
.value=${this._entityId}
|
.value=${this._entityId}
|
||||||
@change=${this._entityIdChanged}
|
@value-changed=${this._entityIdChanged}
|
||||||
allow-custom-entity
|
allow-custom-entity
|
||||||
item-label-path="entity_id"
|
item-label-path="entity_id"
|
||||||
></ha-entity-picker>
|
></ha-entity-picker>
|
||||||
@ -347,7 +347,8 @@ class HaPanelDevState extends LitElement {
|
|||||||
ev.preventDefault();
|
ev.preventDefault();
|
||||||
}
|
}
|
||||||
|
|
||||||
private _entityIdChanged() {
|
private _entityIdChanged(ev: CustomEvent) {
|
||||||
|
this._entityId = ev.detail.value;
|
||||||
if (!this._entityId) {
|
if (!this._entityId) {
|
||||||
this._entity = undefined;
|
this._entity = undefined;
|
||||||
this._state = "";
|
this._state = "";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user