Merge pull request #3718 from DB-CL/dev

Update slider's min/max when thermostat gets updated
This commit is contained in:
Bram Kragten 2019-09-16 15:45:17 +02:00 committed by GitHub
commit 1109d18576
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -222,6 +222,8 @@ export class HuiThermostatCard extends LitElement implements LovelaceCard {
sliderType, sliderType,
value: sliderValue, value: sliderValue,
disabled: sliderValue === null, disabled: sliderValue === null,
min: stateObj.attributes.min_temp,
max: stateObj.attributes.max_temp,
}); });
this._updateSetTemp(uiValue); this._updateSetTemp(uiValue);
} }