remotelogin/devices/vendors/wemo.py
def turn_off(self, conn=None):
        """
        Turns off the first switch that it finds.

        BinaryState is set to 'Error' in the case that it was already off.
        """
        resp = self.send_command('SetBinaryState', {'BinaryState': (0, 'Boolean')}, conn)
        tagValue = conn.client.extractSingleTag(resp, 'BinaryState')
        return True if tagValue in ['0', 'Error'] else False

        Turns off the first switch that it finds.

        BinaryState is set to 'Error' in the case that it was already off.
        
Turns off the first switch that it finds.
BinaryState is set to 'Error' in the case that it was already off.
Turns off the first switch that it finds . BinaryState is set to ' Error ' in the case that it was already off .
def turn_off(self, conn=None):
        resp = self.send_command('SetBinaryState', {'BinaryState': (0, 'Boolean')}, conn)
        tagValue = conn.client.extractSingleTag(resp, 'BinaryState')
        return True if tagValue in ['0', 'Error'] else False
def turn_off ( self , conn = None ) : resp = self . send_command ( 'SetBinaryState' , { 'BinaryState' : ( 0 , 'Boolean' ) } , conn ) tagValue = conn . client . extractSingleTag ( resp , 'BinaryState' ) return True if tagValue in [ '0' , 'Error' ] else False
Turns off the first switch that it finds.
Turns off the first switch that it finds .
"""
        Turns off the first switch that it finds.

        BinaryState is set to 'Error' in the case that it was already off.
        """
self
conn