From 229bc26327e4e0fc7a24ff7ce3895aa92cfaa65f Mon Sep 17 00:00:00 2001 From: Bram Kragten Date: Wed, 31 Aug 2022 18:08:35 +0200 Subject: [PATCH] Don't fire change on tag picker when not changed (#13537) --- .../automation/trigger/types/ha-automation-trigger-tag.ts | 3 +++ 1 file changed, 3 insertions(+) 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 ec80254f35..9a12ab7b55 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 @@ -56,6 +56,9 @@ export class HaTagTrigger extends LitElement implements TriggerElement { } private _tagChanged(ev) { + if (this.trigger.tag_id === ev.detail.value) { + return; + } fireEvent(this, "value-changed", { value: { ...this.trigger,