From a8b7937d75b834ac28fbe5f43e2ca17699f48b8a Mon Sep 17 00:00:00 2001 From: karwosts <32912880+karwosts@users.noreply.github.com> Date: Thu, 22 Dec 2022 03:48:48 -0800 Subject: [PATCH] Fix zwave automations not handling 0 values in the visual editor (#14835) Co-authored-by: Bram Kragten fixes undefined --- 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 9602131040..9e91b65fbe 100644 --- a/src/components/ha-selector/ha-selector-select.ts +++ b/src/components/ha-selector/ha-selector-select.ts @@ -192,7 +192,7 @@ export class HaSelectSelector extends LitElement { private _valueChanged(ev) { ev.stopPropagation(); const value = ev.detail?.value || ev.target.value; - if (this.disabled || !value) { + if (this.disabled || value === undefined) { return; } fireEvent(this, "value-changed", {