6694b0470ec7a0b84f5e3e297d96e2ea951a01a2,homeassistant/components/climate/nest.py,NestThermostat,set_temperature,#NestThermostat#,141
Before Change
Set new target temperature.
temperature = convert_temperature(kwargs.get(ATTR_TEMPERATURE),
self._unit, TEMP_CELSIUS)
_LOGGER.debug("Nest set_temperature-input-value=%s", temperature)
if temperature is None:
return
if self.device.mode == "range":
if self.target_temperature == self.target_temperature_low:
After Change
def set_temperature(self, **kwargs):
Set new target temperature.
if kwargs.get(ATTR_TARGET_TEMP_LOW) is not None and \
kwargs.get(ATTR_TARGET_TEMP_HIGH) is not None:
target_temp_high = convert_temperature(kwargs.get(
ATTR_TARGET_TEMP_HIGH), self._unit, TEMP_CELSIUS)
target_temp_low = convert_temperature(kwargs.get(
ATTR_TARGET_TEMP_LOW), self._unit, TEMP_CELSIUS)
temp = (target_temp_low, target_temp_high)
_LOGGER.debug("Nest set_temperature-output-value=%s", temp)
self.device.target = temp
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances Project Name: home-assistant/home-assistant
Commit Name: 6694b0470ec7a0b84f5e3e297d96e2ea951a01a2
Time: 2016-09-27
Author: turbokongen@hotmail.com
File Name: homeassistant/components/climate/nest.py
Class Name: NestThermostat
Method Name: set_temperature
Project Name: streamlit/streamlit
Commit Name: 0548aad44b5138ea0bbc96ef8964b986bebcb589
Time: 2019-06-18
Author: tconkling@gmail.com
File Name: lib/streamlit/watcher/EventBasedFileWatcher.py
Class Name: _FolderEventHandler
Method Name: add_file_change_listener
Project Name: streamlit/streamlit
Commit Name: e0e9d7350826c7d968e48181cea38bde23942c30
Time: 2019-06-19
Author: tconkling@gmail.com
File Name: lib/streamlit/watcher/EventBasedFileWatcher.py
Class Name: _FolderEventHandler
Method Name: add_file_change_listener