Revert "Either show range or fix target temperature... #13638 (#13706)

This commit is contained in:
Joakim Plate 2022-09-13 10:40:18 +02:00 committed by Bram Kragten
parent f7253a73a5
commit 3cf14bb2e1
No known key found for this signature in database
GPG Key ID: FBE2DFDB363EF55B

View File

@ -98,9 +98,7 @@ class MoreInfoClimate extends LitElement {
</div> </div>
` `
: ""} : ""}
${supportTargetTemperature && ${stateObj.attributes.temperature !== undefined &&
!supportTargetTemperatureRange &&
stateObj.attributes.temperature !== undefined &&
stateObj.attributes.temperature !== null stateObj.attributes.temperature !== null
? html` ? html`
<ha-climate-control <ha-climate-control
@ -114,11 +112,10 @@ class MoreInfoClimate extends LitElement {
></ha-climate-control> ></ha-climate-control>
` `
: ""} : ""}
${supportTargetTemperatureRange && ${(stateObj.attributes.target_temp_low !== undefined &&
((stateObj.attributes.target_temp_low !== undefined &&
stateObj.attributes.target_temp_low !== null) || stateObj.attributes.target_temp_low !== null) ||
(stateObj.attributes.target_temp_high !== undefined && (stateObj.attributes.target_temp_high !== undefined &&
stateObj.attributes.target_temp_high !== null)) stateObj.attributes.target_temp_high !== null)
? html` ? html`
<ha-climate-control <ha-climate-control
.hass=${this.hass} .hass=${this.hass}