Fix missing end tag (#3378)

* Fix missing end tag

* Prettify file
This commit is contained in:
Joakim Plate 2019-07-18 18:36:15 +02:00 committed by Paulus Schoutsen
parent 3fd0ee9d75
commit 4f2b82d787

View File

@ -116,7 +116,8 @@ export class HuiThermostatCard extends LitElement implements LovelaceCard {
[mode]: true,
large: this._broadCard!,
small: !this._broadCard,
})}">
})}"
>
<div id="root">
<paper-icon-button
icon="hass:dots-vertical"
@ -125,28 +126,26 @@ export class HuiThermostatCard extends LitElement implements LovelaceCard {
></paper-icon-button>
<div id="thermostat"></div>
<div id="tooltip">
<div class="title">${this._config.name ||
computeStateName(stateObj)}</div>
<div class="title">
${this._config.name || computeStateName(stateObj)}
</div>
<div class="current-temperature">
<span class="current-temperature-text">
${stateObj.attributes.current_temperature}
${
stateObj.attributes.current_temperature
? html`
<span class="uom"
>${this.hass.config.unit_system.temperature}</span
>
`
: ""
}
${stateObj.attributes.current_temperature
? html`
<span class="uom"
>${this.hass.config.unit_system.temperature}</span
>
`
: ""}
</span>
</div>
<div class="climate-info">
<div id="set-temperature"></div>
<div class="current-mode">
${this.hass!.localize(`state.climate.${stateObj.state}`)}
${
stateObj.attributes.preset_mode
<div id="set-temperature"></div>
<div class="current-mode">
${this.hass!.localize(`state.climate.${stateObj.state}`)}
${stateObj.attributes.preset_mode
? html`
-
${this.hass!.localize(
@ -155,13 +154,13 @@ export class HuiThermostatCard extends LitElement implements LovelaceCard {
}`
) || stateObj.attributes.preset_mode}
`
: ""
}
</div>
<div class="modes">
${stateObj.attributes.hvac_modes.map((modeItem) =>
this._renderIcon(modeItem, mode)
)}
: ""}
</div>
<div class="modes">
${stateObj.attributes.hvac_modes.map((modeItem) =>
this._renderIcon(modeItem, mode)
)}
</div>
</div>
</div>
</div>