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 GitHub
parent 6902537666
commit d70cb24722
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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}