From df22fd00cad424ca81b72946736e8651add5ce22 Mon Sep 17 00:00:00 2001 From: Bram Kragten Date: Fri, 30 Apr 2021 20:34:31 +0200 Subject: [PATCH] Check if temperature available in forecast (#9055) --- src/dialogs/more-info/controls/more-info-weather.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/dialogs/more-info/controls/more-info-weather.ts b/src/dialogs/more-info/controls/more-info-weather.ts index 323f327fd0..06f01bf681 100644 --- a/src/dialogs/more-info/controls/more-info-weather.ts +++ b/src/dialogs/more-info/controls/more-info-weather.ts @@ -204,8 +204,10 @@ class MoreInfoWeather extends LitElement { ` : ""}
- ${formatNumber(item.temperature, this.hass.locale)} - ${getWeatherUnit(this.hass, "temperature")} + ${this._showValue(item.temperature) + ? `${formatNumber(item.temperature, this.hass.locale)} + ${getWeatherUnit(this.hass, "temperature")}` + : ""}
`;