mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 19:26: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}`
|
`ha-automation-action-${action}`
|
||||||
) as CustomElementConstructor & { defaultConfig: Action };
|
) as CustomElementConstructor & { defaultConfig: Action };
|
||||||
|
|
||||||
actions = this.actions.concat({
|
actions = this.actions.concat(
|
||||||
...elClass.defaultConfig,
|
elClass ? { ...elClass.defaultConfig } : { [action]: {} }
|
||||||
});
|
);
|
||||||
}
|
}
|
||||||
this._focusLastActionOnChange = true;
|
this._focusLastActionOnChange = true;
|
||||||
fireEvent(this, "value-changed", { value: actions });
|
fireEvent(this, "value-changed", { value: actions });
|
||||||
|
Loading…
x
Reference in New Issue
Block a user