From 310df387e7927da92e23bf279619042d13a703dd Mon Sep 17 00:00:00 2001 From: Bram Kragten Date: Mon, 5 Sep 2022 14:08:52 +0200 Subject: [PATCH] Fix tag trigger (#13588) --- .../automation/trigger/types/ha-automation-trigger-tag.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/panels/config/automation/trigger/types/ha-automation-trigger-tag.ts b/src/panels/config/automation/trigger/types/ha-automation-trigger-tag.ts index 12cb696d80..18c702bf16 100644 --- a/src/panels/config/automation/trigger/types/ha-automation-trigger-tag.ts +++ b/src/panels/config/automation/trigger/types/ha-automation-trigger-tag.ts @@ -58,9 +58,9 @@ export class HaTagTrigger extends LitElement implements TriggerElement { private _tagChanged(ev) { if ( - !ev.detail.value || + !ev.target.value || !this._tags || - this.trigger.tag_id === ev.detail.value + this.trigger.tag_id === ev.target.value ) { return; }