'Initialize the scanner.'

def __init__(self, config):

    host = config[CONF_HOST]
    self.username = config[CONF_USERNAME]
    self.password = config[CONF_PASSWORD]
    self.parse_api_pattern = re.compile('(?P<param>\\w*)    =    (?P<value>.*);')
    self.last_results = {}
    self.url = 'http://{}/ubus'.format(host)
    self.session_id = _get_session_id(self.url, self.username, self.password)
    self.hostapd = []
    self.leasefile = None
    self.mac2name = None
    self.success_init = (self.session_id is not None)
