diff --git a/src/panels/lovelace/cards/hui-thermostat-card.ts b/src/panels/lovelace/cards/hui-thermostat-card.ts index 60874e7c65..6d67095465 100644 --- a/src/panels/lovelace/cards/hui-thermostat-card.ts +++ b/src/panels/lovelace/cards/hui-thermostat-card.ts @@ -129,7 +129,7 @@ export class HuiThermostatCard extends LitElement implements LovelaceCard { > `; - const currentTemperature = stateObj.attributes.current_temperature + const currentTemperature = !isNaN(stateObj.attributes.current_temperature) ? svg` ${ - !this._setTemp + this._setTemp === undefined || this._setTemp === null ? "" : Array.isArray(this._setTemp) ? this._stepSize === 1