Change to thermostat card to reflect step_temp on set-temperature (#4221)

* Minor change to thermostat card to reflect step_temp on set-temperature

* Corrected indentation

* Resolved eslint error
This commit is contained in:
Davide Varricchio 2019-11-25 17:42:38 +01:00 committed by Bram Kragten
parent f6afc92d3c
commit fe93b993db

View File

@ -153,13 +153,22 @@ export class HuiThermostatCard extends LitElement implements LovelaceCard {
!this._setTemp
? ""
: Array.isArray(this._setTemp)
? this._stepSize === 1
? svg`
${this._setTemp[0].toFixed()} -
${this._setTemp[1].toFixed()}
`
: svg`
${this._setTemp[0].toFixed(1)} -
${this._setTemp[1].toFixed(1)}
`
: this._stepSize === 1
? svg`
${this._setTemp[0].toFixed(1)} -
${this._setTemp[1].toFixed(1)}
`
${this._setTemp.toFixed()}
`
: svg`
${this._setTemp.toFixed(1)}
`
${this._setTemp.toFixed(1)}
`
}
</text>
<text