mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 11:16:35 +00:00
Either show range or fix target temperature control in climate more-info (#13638)
This commit is contained in:
parent
3e9d6ea2c5
commit
7f82b90c25
@ -98,7 +98,9 @@ class MoreInfoClimate extends LitElement {
|
|||||||
</div>
|
</div>
|
||||||
`
|
`
|
||||||
: ""}
|
: ""}
|
||||||
${stateObj.attributes.temperature !== undefined &&
|
${supportTargetTemperature &&
|
||||||
|
!supportTargetTemperatureRange &&
|
||||||
|
stateObj.attributes.temperature !== undefined &&
|
||||||
stateObj.attributes.temperature !== null
|
stateObj.attributes.temperature !== null
|
||||||
? html`
|
? html`
|
||||||
<ha-climate-control
|
<ha-climate-control
|
||||||
@ -112,10 +114,11 @@ class MoreInfoClimate extends LitElement {
|
|||||||
></ha-climate-control>
|
></ha-climate-control>
|
||||||
`
|
`
|
||||||
: ""}
|
: ""}
|
||||||
${(stateObj.attributes.target_temp_low !== undefined &&
|
${supportTargetTemperatureRange &&
|
||||||
|
((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}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user