mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 11:46:42 +00:00
commit
c7f7e72340
2
setup.py
2
setup.py
@ -2,7 +2,7 @@ from setuptools import setup, find_packages
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="home-assistant-frontend",
|
name="home-assistant-frontend",
|
||||||
version="20190717.0",
|
version="20190717.1",
|
||||||
description="The Home Assistant frontend",
|
description="The Home Assistant frontend",
|
||||||
url="https://github.com/home-assistant/home-assistant-polymer",
|
url="https://github.com/home-assistant/home-assistant-polymer",
|
||||||
author="The Home Assistant Authors",
|
author="The Home Assistant Authors",
|
||||||
|
@ -204,13 +204,11 @@ export class HuiThermostatCard extends LitElement implements LovelaceCard {
|
|||||||
!changedProps.has("_jQuery") &&
|
!changedProps.has("_jQuery") &&
|
||||||
(!oldHass || oldHass.states[this._config.entity] !== stateObj)
|
(!oldHass || oldHass.states[this._config.entity] !== stateObj)
|
||||||
) {
|
) {
|
||||||
const [sliderValue, uiValue, _sliderType] = this._genSliderValue(
|
const [sliderValue, uiValue, sliderType] = this._genSliderValue(stateObj);
|
||||||
stateObj
|
|
||||||
);
|
|
||||||
|
|
||||||
this._jQuery("#thermostat", this.shadowRoot).roundSlider({
|
this._jQuery("#thermostat", this.shadowRoot).roundSlider({
|
||||||
|
sliderType,
|
||||||
value: sliderValue,
|
value: sliderValue,
|
||||||
sliderType: _sliderType,
|
|
||||||
});
|
});
|
||||||
this._updateSetTemp(uiValue);
|
this._updateSetTemp(uiValue);
|
||||||
}
|
}
|
||||||
@ -253,14 +251,14 @@ export class HuiThermostatCard extends LitElement implements LovelaceCard {
|
|||||||
this._roundSliderStyle = loaded.roundSliderStyle;
|
this._roundSliderStyle = loaded.roundSliderStyle;
|
||||||
this._jQuery = loaded.jQuery;
|
this._jQuery = loaded.jQuery;
|
||||||
|
|
||||||
const [sliderValue, uiValue, _sliderType] = this._genSliderValue(stateObj);
|
const [sliderValue, uiValue, sliderType] = this._genSliderValue(stateObj);
|
||||||
|
|
||||||
this._jQuery("#thermostat", this.shadowRoot).roundSlider({
|
this._jQuery("#thermostat", this.shadowRoot).roundSlider({
|
||||||
...thermostatConfig,
|
...thermostatConfig,
|
||||||
radius,
|
radius,
|
||||||
min: stateObj.attributes.min_temp,
|
min: stateObj.attributes.min_temp,
|
||||||
max: stateObj.attributes.max_temp,
|
max: stateObj.attributes.max_temp,
|
||||||
sliderType: _sliderType,
|
sliderType,
|
||||||
change: (value) => this._setTemperature(value),
|
change: (value) => this._setTemperature(value),
|
||||||
drag: (value) => this._dragEvent(value),
|
drag: (value) => this._dragEvent(value),
|
||||||
value: sliderValue,
|
value: sliderValue,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user