d5179b4bdc6f0a183c53257ff89eb4e3bfb33df1,homeassistant/components/switch/command_switch.py,CommandSwitch,turn_off,#CommandSwitch#,75

Before Change


         Turn the device off. 
        if CommandSwitch._switch(self._command_off):
            self._state = False
        self.update_ha_state()

After Change


    def turn_off(self, **kwargs):
         Turn the device off. 
        if CommandSwitch._switch(self._command_off):
            if not self._command_state:
                self._state = False
                self.update_ha_state()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: home-assistant/home-assistant
Commit Name: d5179b4bdc6f0a183c53257ff89eb4e3bfb33df1
Time: 2015-12-21
Author: happyleaves.tfr@gmail.com
File Name: homeassistant/components/switch/command_switch.py
Class Name: CommandSwitch
Method Name: turn_off


Project Name: home-assistant/home-assistant
Commit Name: 241a7689832c504f18d9ea3bbb71e4f58f4d8fe5
Time: 2016-01-29
Author: flyte@failcode.co.uk
File Name: homeassistant/components/zigbee.py
Class Name: ZigBeeDigitalOut
Method Name: _set_state


Project Name: home-assistant/home-assistant
Commit Name: d5179b4bdc6f0a183c53257ff89eb4e3bfb33df1
Time: 2015-12-21
Author: happyleaves.tfr@gmail.com
File Name: homeassistant/components/switch/command_switch.py
Class Name: CommandSwitch
Method Name: turn_on