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: 5
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: home-assistant/home-assistant
Commit Name: 625319846c77b37a9f2a5ffcf8d3be311cd534fe
Time: 2016-10-03
Author: pascal.vizeli@syshack.ch
File Name: homeassistant/components/homematic.py
Class Name:
Method Name: _get_devices
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