def validate_registration(self):
        '''
        Checks if the device + username have already been registered with the
        bridge.
        '''
        url = '/api/%s' % self.username
        response = self.make_request('GET', url)

        if 'error' in response:
            return False

        return True
def validate_registration ( self ) : url = '/api/%s' % self . username response = self . make_request ( 'GET' , url ) if 'error' in response : return False return True
Checks if the device + username have already been registered with the
        bridge.