'Initialize the scanner.'

def __init__(self, config):

    (host, http_id) = (config[CONF_HOST], config[CONF_HTTP_ID])
    (username, password) = (config[CONF_USERNAME], config[CONF_PASSWORD])
    self.req = requests.Request('POST', 'http://{}/update.cgi'.format(host), data={'_http_id': http_id, 'exec': 'devlist'}, auth=requests.auth.HTTPBasicAuth(username, password)).prepare()
    self.parse_api_pattern = re.compile('(?P<param>\\w*)    =    (?P<value>.*);')
    self.logger = logging.getLogger('{}.{}'.format(__name__, 'Tomato'))
    self.last_results = {'wldev': [], 'dhcpd_lease': []}
    self.success_init = self._update_tomato_info()
