fix for thermostat reporting null target temp (#2730)
* fix for thermostat reporting null target temp * address review comments
This commit is contained in:
parent
b6b224be77
commit
7d8f790708
@ -280,7 +280,10 @@ export class HuiThermostatCard extends LitElement implements LovelaceCard {
|
||||
);
|
||||
} else {
|
||||
sliderValue = stateObj.attributes.temperature;
|
||||
uiValue = "" + stateObj.attributes.temperature;
|
||||
uiValue =
|
||||
stateObj.attributes.temperature !== null
|
||||
? String(stateObj.attributes.temperature)
|
||||
: "";
|
||||
}
|
||||
|
||||
return [sliderValue, uiValue];
|
||||
|
Loading…
x
Reference in New Issue
Block a user