def set_power(self, sid, state):
    """Sets the power state of the smart power strip."""
    sid_mask = 0x01 << (sid - 1)
    return self.set_power_mask(sid_mask, state)
def set_power ( self , sid , state ) : sid_mask = 0x01 << ( sid - 1 ) return self . set_power_mask ( sid_mask , state )
Sets the power state of the smart power strip.