Fix automation editor (#7746)

This commit is contained in:
Bram Kragten 2020-11-20 15:16:27 +01:00 committed by GitHub
parent 38ba85e89d
commit f69951a523
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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[] },
});