'Retrieve the device list with a retry if token is invalid.
Return the list if successful.'

def _retrieve_list_with_retry(self):

    _LOGGER.info('Refreshing    device    list')
    result = _retrieve_list(self.host, self.token)
    if result:
        return result
    _LOGGER.info('Refreshing    token    and    retrying    device    list    refresh')
    self.token = _get_token(self.host, self.username, self.password)
    return _retrieve_list(self.host, self.token)
