mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +00:00
Fix default precision display in entity settings (#17491)
This commit is contained in:
parent
060e67397a
commit
1a15c8da8c
@ -264,7 +264,7 @@ export class EntityRegistrySettingsEditor extends LitElement {
|
||||
|
||||
private precisionLabel(precision?: number, stateValue?: string) {
|
||||
const stateValueNumber = Number(stateValue);
|
||||
const value = !isNaN(stateValueNumber) ? stateValueNumber : 0;
|
||||
const value = !isNaN(stateValueNumber) ? stateValue! : 0;
|
||||
return formatNumber(value, this.hass.locale, {
|
||||
minimumFractionDigits: precision,
|
||||
maximumFractionDigits: precision,
|
||||
|
Loading…
x
Reference in New Issue
Block a user