diff --git a/src/panels/config/automation/condition/ha-automation-condition.ts b/src/panels/config/automation/condition/ha-automation-condition.ts index 36cb5fb485..f562d12203 100644 --- a/src/panels/config/automation/condition/ha-automation-condition.ts +++ b/src/panels/config/automation/condition/ha-automation-condition.ts @@ -150,7 +150,7 @@ export default class HaAutomationCondition extends LitElement { : null}
${repeat( - this.conditions, + this.conditions.filter((c) => typeof c === "object"), (condition) => this._getKey(condition), (cond, idx) => html` ) { ev.stopPropagation(); + this._config = ev.detail.value; if (this._readOnly) { return; } - this._config = ev.detail.value; this._dirty = true; this._errors = undefined; }