298575f7cbb6efef6c80af54a95faaf8cf9fe4c0,homeassistant/components/climate/zwave.py,ZWaveClimate,set_swing_mode,#ZWaveClimate#Any#,252

Before Change


    def set_swing_mode(self, swing_mode):
        Set new target swing mode.
        if self._zxt_120 == 1:
            for value in self._node.get_values(
                    class_id=zwave.const.COMMAND_CLASS_CONFIGURATION).values():
                if value.command_class == \
                   zwave.const.COMMAND_CLASS_CONFIGURATION and \
                   value.index == 33:
                    value.data = bytes(swing_mode, "utf-8")
                    break

    @property
    def device_state_attributes(self):
        Return the device specific state attributes.
        data = super().device_state_attributes

After Change


    def set_swing_mode(self, swing_mode):
        Set new target swing mode.
        if self._zxt_120 == 1:
            self.set_value(
                class_id=zwave.const.COMMAND_CLASS_CONFIGURATION,
                index=33, data=bytes(swing_mode, "utf-8"))

    @property
    def device_state_attributes(self):
        Return the device specific state attributes.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 21

Instances


Project Name: home-assistant/home-assistant
Commit Name: 298575f7cbb6efef6c80af54a95faaf8cf9fe4c0
Time: 2017-02-09
Author: turbokongen@hotmail.com
File Name: homeassistant/components/climate/zwave.py
Class Name: ZWaveClimate
Method Name: set_swing_mode


Project Name: home-assistant/home-assistant
Commit Name: 298575f7cbb6efef6c80af54a95faaf8cf9fe4c0
Time: 2017-02-09
Author: turbokongen@hotmail.com
File Name: homeassistant/components/climate/zwave.py
Class Name: ZWaveClimate
Method Name: set_swing_mode


Project Name: home-assistant/home-assistant
Commit Name: 298575f7cbb6efef6c80af54a95faaf8cf9fe4c0
Time: 2017-02-09
Author: turbokongen@hotmail.com
File Name: homeassistant/components/climate/zwave.py
Class Name: ZWaveClimate
Method Name: set_operation_mode


Project Name: home-assistant/home-assistant
Commit Name: 298575f7cbb6efef6c80af54a95faaf8cf9fe4c0
Time: 2017-02-09
Author: turbokongen@hotmail.com
File Name: homeassistant/components/climate/zwave.py
Class Name: ZWaveClimate
Method Name: set_fan_mode