diff --git a/src/components/ha-form/ha-form-float.ts b/src/components/ha-form/ha-form-float.ts index 5518c48158..8983e027f4 100644 --- a/src/components/ha-form/ha-form-float.ts +++ b/src/components/ha-form/ha-form-float.ts @@ -76,6 +76,11 @@ export class HaFormFloat extends LitElement implements HaFormElement { return; } + // Allow user to start typing a negative zero + if (rawValue === "-0") { + return; + } + if (rawValue !== "") { value = parseFloat(rawValue); if (isNaN(value)) {