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