mirror of
https://github.com/home-assistant/frontend.git
synced 2025-04-24 13:27:22 +00:00
Fix for thermostats without current temperature (#1979)
* fix for thermostats without current temperature * make linter happy * always render value, uom only when there is a value * Update hui-thermostat-card.ts
This commit is contained in:
parent
c10e409634
commit
5891a6ee7d
@ -93,12 +93,15 @@ export class HuiThermostatCard extends hassLocalizeLitMixin(LitElement)
|
||||
<div id="tooltip">
|
||||
<div class="title">${computeStateName(stateObj)}</div>
|
||||
<div class="current-temperature">
|
||||
<span class="current-temperature-text">${
|
||||
stateObj.attributes.current_temperature
|
||||
}
|
||||
<span class="uom">${
|
||||
this.hass.config.unit_system.temperature
|
||||
}</span>
|
||||
<span class="current-temperature-text">
|
||||
${stateObj.attributes.current_temperature}
|
||||
${
|
||||
stateObj.attributes.current_temperature
|
||||
? html`<span class="uom">${
|
||||
this.hass.config.unit_system.temperature
|
||||
}</span>`
|
||||
: ""
|
||||
}
|
||||
</span>
|
||||
</div>
|
||||
<div class="climate-info">
|
||||
|
Loading…
x
Reference in New Issue
Block a user