diff --git a/src/panels/config/automation/action/ha-automation-action.ts b/src/panels/config/automation/action/ha-automation-action.ts index dcd2f3971d..af2cfe50c8 100644 --- a/src/panels/config/automation/action/ha-automation-action.ts +++ b/src/panels/config/automation/action/ha-automation-action.ts @@ -262,9 +262,9 @@ export default class HaAutomationAction extends LitElement { `ha-automation-action-${action}` ) as CustomElementConstructor & { defaultConfig: Action }; - actions = this.actions.concat({ - ...elClass.defaultConfig, - }); + actions = this.actions.concat( + elClass ? { ...elClass.defaultConfig } : { [action]: {} } + ); } this._focusLastActionOnChange = true; fireEvent(this, "value-changed", { value: actions });