mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 19:26:36 +00:00
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:
parent
f6afc92d3c
commit
fe93b993db
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user