Fix-ha-form-float-validate (#23751)

* Use autoCaseNoun for domainName

* Fix ha-form-float validate

* Revert "Use autoCaseNoun for domainName"

This reverts commit ff6855149b799665ae27b8b2a81b4545435a953c.
This commit is contained in:
Wendelin 2025-01-15 10:54:38 +01:00 committed by GitHub
parent 7960da1872
commit e54f178b02
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -36,7 +36,7 @@ export class HaFormFloat extends LitElement implements HaFormElement {
protected render(): TemplateResult {
return html`
<ha-textfield
type="numeric"
type="number"
inputMode="decimal"
.label=${this.label}
.helper=${this.helper}
@ -84,11 +84,6 @@ export class HaFormFloat extends LitElement implements HaFormElement {
// Detect anything changed
if (this.data === value) {
// parseFloat will drop invalid text at the end, in that case update textfield
const newRawValue = value === undefined ? "" : String(value);
if (source.value !== newRawValue) {
source.value = newRawValue;
}
return;
}