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

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

        Turns on the first switch that it finds.

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

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