diff --git a/src/panels/config/automation/trigger/types/ha-automation-trigger-state.ts b/src/panels/config/automation/trigger/types/ha-automation-trigger-state.ts index 6a24bf98d5..8e689c15fe 100644 --- a/src/panels/config/automation/trigger/types/ha-automation-trigger-state.ts +++ b/src/panels/config/automation/trigger/types/ha-automation-trigger-state.ts @@ -54,7 +54,9 @@ export class HaStateTrigger extends LitElement implements TriggerElement { }, { name: "attribute", - selector: { attribute: { entity_id: entityId } }, + selector: { + attribute: { entity_id: entityId ? entityId[0] : undefined }, + }, }, { name: "from",