Allow setting temperature to 0 degrees (#4300)

This commit is contained in:
Thomas Lovén 2019-12-02 09:23:20 +01:00 committed by Bram Kragten
parent daa04e9973
commit e7e9e2cf85

View File

@ -100,7 +100,7 @@ class MoreInfoClimate extends LitElement {
</div>
`
: ""}
${stateObj.attributes.temperature
${stateObj.attributes.temperature !== undefined
? html`
<ha-climate-control
.value=${stateObj.attributes.temperature}
@ -112,8 +112,8 @@ class MoreInfoClimate extends LitElement {
></ha-climate-control>
`
: ""}
${stateObj.attributes.target_temp_low ||
stateObj.attributes.target_temp_high
${stateObj.attributes.target_temp_low !== undefined ||
stateObj.attributes.target_temp_high !== undefined
? html`
<ha-climate-control
.value=${stateObj.attributes.target_temp_low}