mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +00:00
Fix define variables action (#16712)
This commit is contained in:
parent
40c9292e16
commit
287e6dbb60
@ -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 });
|
||||
|
Loading…
x
Reference in New Issue
Block a user