diff --git a/src/dialogs/more-info/controls/more-info-climate.ts b/src/dialogs/more-info/controls/more-info-climate.ts index 1715a94703..2a66080055 100644 --- a/src/dialogs/more-info/controls/more-info-climate.ts +++ b/src/dialogs/more-info/controls/more-info-climate.ts @@ -98,9 +98,7 @@ class MoreInfoClimate extends LitElement { ` : ""} - ${supportTargetTemperature && - !supportTargetTemperatureRange && - stateObj.attributes.temperature !== undefined && + ${stateObj.attributes.temperature !== undefined && stateObj.attributes.temperature !== null ? html` ` : ""} - ${supportTargetTemperatureRange && - ((stateObj.attributes.target_temp_low !== undefined && + ${(stateObj.attributes.target_temp_low !== undefined && stateObj.attributes.target_temp_low !== null) || - (stateObj.attributes.target_temp_high !== undefined && - stateObj.attributes.target_temp_high !== null)) + (stateObj.attributes.target_temp_high !== undefined && + stateObj.attributes.target_temp_high !== null) ? html`