mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-21 08:16:36 +00:00
Fix refresh in developer state tools (#18532)
This commit is contained in:
parent
3d03f74d66
commit
a7f6ce3079
@ -167,7 +167,7 @@ class HaPanelDevState extends LitElement {
|
|||||||
)}</mwc-button
|
)}</mwc-button
|
||||||
>
|
>
|
||||||
<ha-icon-button
|
<ha-icon-button
|
||||||
@click=${this._entityIdChanged}
|
@click=${this._updateEntity}
|
||||||
.label=${this.hass.localize("ui.common.refresh")}
|
.label=${this.hass.localize("ui.common.refresh")}
|
||||||
.path=${mdiRefresh}
|
.path=${mdiRefresh}
|
||||||
></ha-icon-button>
|
></ha-icon-button>
|
||||||
@ -349,6 +349,10 @@ class HaPanelDevState extends LitElement {
|
|||||||
|
|
||||||
private _entityIdChanged(ev: CustomEvent) {
|
private _entityIdChanged(ev: CustomEvent) {
|
||||||
this._entityId = ev.detail.value;
|
this._entityId = ev.detail.value;
|
||||||
|
this._updateEntity();
|
||||||
|
}
|
||||||
|
|
||||||
|
private _updateEntity() {
|
||||||
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