From f1cb21e7fcc22ce680e147c61579be33903745fc Mon Sep 17 00:00:00 2001 From: Philip Allgaier Date: Mon, 18 Oct 2021 22:07:16 +0200 Subject: [PATCH] Fix formatting of weather extrema temperatures (#10306) --- src/data/weather.ts | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) 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}` : ""} `; };