mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +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();
|
||||
this._serviceData = { service: ev.detail.value || "", data: {} };
|
||||
this._yamlEditor?.setValue(this._serviceData);
|
||||
this._checkUiSupported();
|
||||
}
|
||||
|
||||
private _fillExampleData() {
|
||||
@ -441,6 +442,7 @@ class HaPanelDevService extends LitElement {
|
||||
});
|
||||
this._serviceData = { ...this._serviceData!, data: example };
|
||||
this._yamlEditor?.setValue(this._serviceData);
|
||||
this._checkUiSupported();
|
||||
}
|
||||
|
||||
static get styles(): CSSResultGroup {
|
||||
|
Loading…
x
Reference in New Issue
Block a user