Clear template-not-supported error when switching services in devtools (#17090)

This commit is contained in:
karwosts 2023-06-29 00:54:18 -07:00 committed by GitHub
parent b539a939b4
commit ab1759f11d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {