mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 17:26:42 +00:00
Fix automation editor (#7746)
This commit is contained in:
parent
38ba85e89d
commit
f69951a523
@ -279,12 +279,14 @@ export class HaManualAutomationEditor extends LitElement {
|
||||
}
|
||||
|
||||
private _triggerChanged(ev: CustomEvent): void {
|
||||
ev.stopPropagation();
|
||||
fireEvent(this, "value-changed", {
|
||||
value: { ...this.config!, trigger: ev.detail.value as Trigger[] },
|
||||
});
|
||||
}
|
||||
|
||||
private _conditionChanged(ev: CustomEvent): void {
|
||||
ev.stopPropagation();
|
||||
fireEvent(this, "value-changed", {
|
||||
value: {
|
||||
...this.config!,
|
||||
@ -294,6 +296,7 @@ export class HaManualAutomationEditor extends LitElement {
|
||||
}
|
||||
|
||||
private _actionChanged(ev: CustomEvent): void {
|
||||
ev.stopPropagation();
|
||||
fireEvent(this, "value-changed", {
|
||||
value: { ...this.config!, action: ev.detail.value as Action[] },
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user