Fix trigger state attribute selector (#13410)

This commit is contained in:
Franck Nijhof 2022-08-19 15:44:02 +02:00 committed by GitHub
parent d2a19e04ef
commit 57fdea19fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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",