mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 17:26:42 +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");
|
const unit = getWeatherUnit(hass!, "temperature");
|
||||||
|
|
||||||
return html`
|
return html`
|
||||||
${tempHigh
|
${tempHigh ? `${formatNumber(tempHigh, hass.locale)} ${unit}` : ""}
|
||||||
? `
|
|
||||||
${tempHigh} ${unit}
|
|
||||||
`
|
|
||||||
: ""}
|
|
||||||
${tempLow && tempHigh ? " / " : ""}
|
${tempLow && tempHigh ? " / " : ""}
|
||||||
${tempLow
|
${tempLow ? `${formatNumber(tempLow, hass.locale)} ${unit}` : ""}
|
||||||
? `
|
|
||||||
${tempLow} ${unit}
|
|
||||||
`
|
|
||||||
: ""}
|
|
||||||
`;
|
`;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user