From afa071465c21c43849cca2c42bad7b6a7161b723 Mon Sep 17 00:00:00 2001 From: karwosts <32912880+karwosts@users.noreply.github.com> Date: Tue, 18 Apr 2023 23:58:18 -0700 Subject: [PATCH] ha-selector-select fires spurious valueChanged on initialization (#16216) --- src/components/ha-selector/ha-selector-select.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ha-selector/ha-selector-select.ts b/src/components/ha-selector/ha-selector-select.ts index be076d6a12..f4b07b55aa 100644 --- a/src/components/ha-selector/ha-selector-select.ts +++ b/src/components/ha-selector/ha-selector-select.ts @@ -213,7 +213,7 @@ export class HaSelectSelector extends LitElement { private _valueChanged(ev) { ev.stopPropagation(); const value = ev.detail?.value || ev.target.value; - if (this.disabled || value === undefined) { + if (this.disabled || value === undefined || value === this.value) { return; } fireEvent(this, "value-changed", {