mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 17:56:46 +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 {
|
private _triggerChanged(ev: CustomEvent): void {
|
||||||
|
ev.stopPropagation();
|
||||||
fireEvent(this, "value-changed", {
|
fireEvent(this, "value-changed", {
|
||||||
value: { ...this.config!, trigger: ev.detail.value as Trigger[] },
|
value: { ...this.config!, trigger: ev.detail.value as Trigger[] },
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
private _conditionChanged(ev: CustomEvent): void {
|
private _conditionChanged(ev: CustomEvent): void {
|
||||||
|
ev.stopPropagation();
|
||||||
fireEvent(this, "value-changed", {
|
fireEvent(this, "value-changed", {
|
||||||
value: {
|
value: {
|
||||||
...this.config!,
|
...this.config!,
|
||||||
@ -294,6 +296,7 @@ export class HaManualAutomationEditor extends LitElement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private _actionChanged(ev: CustomEvent): void {
|
private _actionChanged(ev: CustomEvent): void {
|
||||||
|
ev.stopPropagation();
|
||||||
fireEvent(this, "value-changed", {
|
fireEvent(this, "value-changed", {
|
||||||
value: { ...this.config!, action: ev.detail.value as Action[] },
|
value: { ...this.config!, action: ev.detail.value as Action[] },
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user