mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 03:06:41 +00:00
Clear template-not-supported error when switching services in devtools (#17090)
This commit is contained in:
parent
b539a939b4
commit
ab1759f11d
@ -420,6 +420,7 @@ class HaPanelDevService extends LitElement {
|
|||||||
ev.stopPropagation();
|
ev.stopPropagation();
|
||||||
this._serviceData = { service: ev.detail.value || "", data: {} };
|
this._serviceData = { service: ev.detail.value || "", data: {} };
|
||||||
this._yamlEditor?.setValue(this._serviceData);
|
this._yamlEditor?.setValue(this._serviceData);
|
||||||
|
this._checkUiSupported();
|
||||||
}
|
}
|
||||||
|
|
||||||
private _fillExampleData() {
|
private _fillExampleData() {
|
||||||
@ -441,6 +442,7 @@ class HaPanelDevService extends LitElement {
|
|||||||
});
|
});
|
||||||
this._serviceData = { ...this._serviceData!, data: example };
|
this._serviceData = { ...this._serviceData!, data: example };
|
||||||
this._yamlEditor?.setValue(this._serviceData);
|
this._yamlEditor?.setValue(this._serviceData);
|
||||||
|
this._checkUiSupported();
|
||||||
}
|
}
|
||||||
|
|
||||||
static get styles(): CSSResultGroup {
|
static get styles(): CSSResultGroup {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user