From 2afbfb01bd88c023a50deef5e66035dc38023e1d Mon Sep 17 00:00:00 2001 From: karliemeads <68717336+karliemeads@users.noreply.github.com> Date: Mon, 10 Oct 2022 11:00:10 -0400 Subject: [PATCH] Fix zero for a slider in a blueprint (#14053) Co-authored-by: Bram Kragten --- src/panels/config/automation/blueprint-automation-editor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/panels/config/automation/blueprint-automation-editor.ts b/src/panels/config/automation/blueprint-automation-editor.ts index 3197fd2b92..8eb563bd10 100644 --- a/src/panels/config/automation/blueprint-automation-editor.ts +++ b/src/panels/config/automation/blueprint-automation-editor.ts @@ -184,7 +184,7 @@ export class HaBlueprintAutomationEditor extends LitElement { ev.stopPropagation(); const target = ev.target as any; const key = target.key; - const value = ev.detail?.value || target.value; + const value = ev.detail?.value ?? target.value; if ( (this.config.use_blueprint.input && this.config.use_blueprint.input[key] === value) ||