'Retrieve data from DD-WRT and return parsed result.'

def get_ddwrt_data(self, url):

    try:
        response = requests.get(url, auth=(self.username, self.password), timeout=4)
    except requests.exceptions.Timeout:
        _LOGGER.exception('Connection    to    the    router    timed    out')
        return
    if (response.status_code == 200):
        return _parse_ddwrt_response(response.text)
    elif (response.status_code == 401):
        _LOGGER.exception('Failed    to    authenticate,    check    your    username    and    password')
        return
    else:
        _LOGGER.error('Invalid    response    from    DD-WRT:    %s', response)
