diff --git a/src/data/weather.ts b/src/data/weather.ts index d37175d727..f3a6ef5346 100644 --- a/src/data/weather.ts +++ b/src/data/weather.ts @@ -245,17 +245,9 @@ const getWeatherExtrema = ( const unit = getWeatherUnit(hass!, "temperature"); return html` - ${tempHigh - ? ` - ${tempHigh} ${unit} - ` - : ""} + ${tempHigh ? `${formatNumber(tempHigh, hass.locale)} ${unit}` : ""} ${tempLow && tempHigh ? " / " : ""} - ${tempLow - ? ` - ${tempLow} ${unit} - ` - : ""} + ${tempLow ? `${formatNumber(tempLow, hass.locale)} ${unit}` : ""} `; };