Fix zero for a slider in a blueprint (#14053)

Co-authored-by: Bram Kragten <mail@bramkragten.nl>
This commit is contained in:
karliemeads 2022-10-10 11:00:10 -04:00 committed by GitHub
parent 907466d060
commit 2afbfb01bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) ||