'Initialize the scanner.'

def __init__(self, host, username, password, port):

    import pynetgear
    self.last_results = []
    self._api = pynetgear.Netgear(password, host, username, port)
    _LOGGER.info('Logging    in')
    results = self._api.get_attached_devices()
    self.success_init = (results is not None)
    if self.success_init:
        self.last_results = results
    else:
        _LOGGER.error('Failed    to    Login')
