diff --git a/src/panels/developer-tools/action/developer-tools-action.ts b/src/panels/developer-tools/action/developer-tools-action.ts index f0f6dc78b1a5..23129a3c18b7 100644 --- a/src/panels/developer-tools/action/developer-tools-action.ts +++ b/src/panels/developer-tools/action/developer-tools-action.ts @@ -68,6 +68,16 @@ class HaPanelDevAction extends LitElement { @query("#yaml-editor") private _yamlEditor?: HaYamlEditor; + protected willUpdate() { + if ( + !this.hasUpdated && + this._serviceData?.action && + typeof this._serviceData.action !== "string" + ) { + this._serviceData.action = ""; + } + } + protected firstUpdated(params) { super.firstUpdated(params); this.hass.loadBackendTranslation("services");