Check if temperature available in forecast (#9055)

This commit is contained in:
Bram Kragten 2021-04-30 20:34:31 +02:00 committed by GitHub
parent ce2743a982
commit df22fd00ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -204,8 +204,10 @@ class MoreInfoWeather extends LitElement {
`
: ""}
<div class="temp">
${formatNumber(item.temperature, this.hass.locale)}
${getWeatherUnit(this.hass, "temperature")}
${this._showValue(item.temperature)
? `${formatNumber(item.temperature, this.hass.locale)}
${getWeatherUnit(this.hass, "temperature")}`
: ""}
</div>
</div>
`;