'Retrieve latest information from the Mikrotik box.'

def _update_info(self):

    if self.wireless_exist:
        devices_tracker = 'wireless'
    else:
        devices_tracker = 'ip'
    _LOGGER.info('Loading    %s    devices    from    Mikrotik    (%s)    ...', devices_tracker, self.host)
    device_names = self.client(cmd='/ip/dhcp-server/lease/getall')
    if self.wireless_exist:
        devices = self.client(cmd='/interface/wireless/registration-table/getall')
    else:
        devices = device_names
    if ((device_names is None) and (devices is None)):
        return False
    mac_names = {device.get('mac-address'): device.get('host-name') for device in device_names if device.get('mac-address')}
    if self.wireless_exist:
        self.last_results = {device.get('mac-address'): mac_names.get(device.get('mac-address')) for device in devices}
    else:
        self.last_results = {device.get('mac-address'): mac_names.get(device.get('mac-address')) for device in device_names if device.get('active-address')}
    return True
