mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-22 16:56:35 +00:00
Fix formatting of weather extrema temperatures (#10306)
This commit is contained in:
parent
a8486eda9f
commit
f1cb21e7fc
@ -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}` : ""}
|
||||
`;
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user