'Initialize the scanner.'

def __init__(self, config):

    self.last_results = {}
    self.host = config[CONF_HOST]
    self.port = config[CONF_PORT]
    self.username = config[CONF_USERNAME]
    self.password = config[CONF_PASSWORD]
    self.connected = False
    self.success_init = False
    self.client = None
    self.wireless_exist = None
    self.success_init = self.connect_to_device()
    if self.success_init:
        _LOGGER.info('Start    polling    Mikrotik    (%s)    router...', self.host)
        self._update_info()
    else:
        _LOGGER.error('Connection    to    Mikrotik    (%s)    failed', self.host)
