diff --git a/src/panels/config/automation/condition/types/ha-automation-condition-time.ts b/src/panels/config/automation/condition/types/ha-automation-condition-time.ts index ce08d1654d..108644ffe5 100644 --- a/src/panels/config/automation/condition/types/ha-automation-condition-time.ts +++ b/src/panels/config/automation/condition/types/ha-automation-condition-time.ts @@ -152,7 +152,9 @@ export class HaTimeCondition extends LitElement implements ConditionElement { delete newValue.mode_before; Object.keys(newValue).forEach((key) => - newValue[key] === undefined || newValue[key] === "" + newValue[key] === undefined || + newValue[key] === "" || + (Array.isArray(newValue[key]) && newValue[key].length === 0) ? delete newValue[key] : {} );