From 3e98b8e4f166e93b49a6675a41333fc195d1d870 Mon Sep 17 00:00:00 2001 From: DBCL Date: Fri, 13 Sep 2019 22:58:43 +0200 Subject: [PATCH 1/2] Add min/max changes on thermostat update --- src/panels/lovelace/cards/hui-thermostat-card.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/panels/lovelace/cards/hui-thermostat-card.ts b/src/panels/lovelace/cards/hui-thermostat-card.ts index 0070de8d0d..5ec56a3d5a 100644 --- a/src/panels/lovelace/cards/hui-thermostat-card.ts +++ b/src/panels/lovelace/cards/hui-thermostat-card.ts @@ -222,6 +222,8 @@ export class HuiThermostatCard extends LitElement implements LovelaceCard { sliderType, value: sliderValue, disabled: sliderValue === null, + min: stateObj.attributes.min_temp, + max: stateObj.attributes.max_temp }); this._updateSetTemp(uiValue); } From 2f3b39945090c13fa96d872ad821fc57dcc6bdb0 Mon Sep 17 00:00:00 2001 From: DBCL Date: Fri, 13 Sep 2019 23:27:28 +0200 Subject: [PATCH 2/2] Please the linter --- src/panels/lovelace/cards/hui-thermostat-card.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/panels/lovelace/cards/hui-thermostat-card.ts b/src/panels/lovelace/cards/hui-thermostat-card.ts index 5ec56a3d5a..9ca11ab80b 100644 --- a/src/panels/lovelace/cards/hui-thermostat-card.ts +++ b/src/panels/lovelace/cards/hui-thermostat-card.ts @@ -223,7 +223,7 @@ export class HuiThermostatCard extends LitElement implements LovelaceCard { value: sliderValue, disabled: sliderValue === null, min: stateObj.attributes.min_temp, - max: stateObj.attributes.max_temp + max: stateObj.attributes.max_temp, }); this._updateSetTemp(uiValue); }