8775c54d29a4adcc11a55c4a37db7da54eccc6e7,homeassistant/components/climate/mysensors.py,MySensorsHVAC,update,#MySensorsHVAC#,174
Before Change
Update the controller with the latest value from a sensor.
set_req = self.gateway.const.SetReq
node = self.gateway.sensors[self.node_id]
child = node.children[self.child_id]
for value_type, value in child.values.items():
_LOGGER.debug(
"%s: value_type %s, value = %s", self._name, value_type, value)
if value_type == set_req.V_HVAC_FLOW_STATE:
self._values[value_type] = DICT_MYS_TO_HA[value]
else:
self._values[value_type] = value
def set_humidity(self, humidity):
Set new target humidity.
_LOGGER.error("Service Not Implemented yet")
After Change
def update(self):
Update the controller with the latest value from a sensor.
super ().update()
self._values[self.value_type] = DICT_MYS_TO_HA[
self._values[self.value_type]]
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances Project Name: home-assistant/home-assistant
Commit Name: 8775c54d29a4adcc11a55c4a37db7da54eccc6e7
Time: 2017-08-25
Author: marhje52@kth.se
File Name: homeassistant/components/climate/mysensors.py
Class Name: MySensorsHVAC
Method Name: update
Project Name: home-assistant/home-assistant
Commit Name: 1d615ea6c3a5f9b3ae6481b827919f04f23c09ce
Time: 2017-08-25
Author: marhje52@kth.se
File Name: homeassistant/components/climate/mysensors.py
Class Name: MySensorsHVAC
Method Name: update
Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 6db6d21cff55ab7b57dc53362d3749f2c052d756
Time: 2019-07-19
Author: Kathrin.Grosse@ibm.com
File Name: art/attacks/decision_tree_attack.py
Class Name: Decision_Tree_Attack
Method Name: set_params