fee87cd6ed859d0b4f2d44619a4c0a4c88ec80f3,homeassistant/components/homekit/type_thermostats.py,Thermostat,set_target_temperature,#Thermostat#Any#,159
Before Change
self.temperature_flag_target_state = True
params = {
ATTR_ENTITY_ID: self.entity_id,
ATTR_TEMPERATURE: temperature_to_states(value, self._unit)}
self.hass.services.call(DOMAIN, SERVICE_SET_TEMPERATURE, params)
def update_state(self, new_state):
After Change
_LOGGER.debug("%s: Set target temperature to %.2f°C",
self.entity_id, value)
self.temperature_flag_target_state = True
temperature = temperature_to_states(value, self._unit)
params = {
ATTR_ENTITY_ID: self.entity_id,
ATTR_TEMPERATURE: temperature}
self.call_service(DOMAIN, SERVICE_SET_TEMPERATURE, params,
"target {}{}".format(temperature,
self._unit))
def update_state(self, new_state):
Update security state after state changed.
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: home-assistant/home-assistant
Commit Name: fee87cd6ed859d0b4f2d44619a4c0a4c88ec80f3
Time: 2018-10-16
Author: hendrix_erik@hotmail.com
File Name: homeassistant/components/homekit/type_thermostats.py
Class Name: Thermostat
Method Name: set_target_temperature
Project Name: home-assistant/home-assistant
Commit Name: fee87cd6ed859d0b4f2d44619a4c0a4c88ec80f3
Time: 2018-10-16
Author: hendrix_erik@hotmail.com
File Name: homeassistant/components/homekit/type_thermostats.py
Class Name: Thermostat
Method Name: set_heating_threshold
Project Name: home-assistant/home-assistant
Commit Name: fee87cd6ed859d0b4f2d44619a4c0a4c88ec80f3
Time: 2018-10-16
Author: hendrix_erik@hotmail.com
File Name: homeassistant/components/homekit/type_thermostats.py
Class Name: Thermostat
Method Name: set_cooling_threshold