diff --git a/src/panels/config/automation/condition/types/ha-automation-condition-trigger.ts b/src/panels/config/automation/condition/types/ha-automation-condition-trigger.ts index d9275dc705..713e665abe 100644 --- a/src/panels/config/automation/condition/types/ha-automation-condition-trigger.ts +++ b/src/panels/config/automation/condition/types/ha-automation-condition-trigger.ts @@ -94,8 +94,8 @@ export class HaTriggerCondition extends LitElement { private _automationUpdated(config?: AutomationConfig) { const seenIds = new Set(); - this._triggers = config?.trigger - ? ensureArray(config.trigger).filter( + this._triggers = config?.triggers + ? ensureArray(config.triggers).filter( (t) => t.id && (seenIds.has(t.id) ? false : seenIds.add(t.id)) ) : []; diff --git a/src/panels/config/automation/manual-automation-editor.ts b/src/panels/config/automation/manual-automation-editor.ts index 23855571d1..741ecb99d2 100644 --- a/src/panels/config/automation/manual-automation-editor.ts +++ b/src/panels/config/automation/manual-automation-editor.ts @@ -78,7 +78,7 @@ export class HaManualAutomationEditor extends LitElement { > - ${!ensureArray(this.config.trigger)?.length + ${!ensureArray(this.config.triggers)?.length ? html`

${this.hass.localize( "ui.panel.config.automation.editor.triggers.description"