'Get the latest data from REST service with provided method.'

def update(self):

    try:
        with requests.Session() as sess:
            response = sess.send(self._request, timeout=10, verify=self._verify_ssl)
        self.data = response.text
    except requests.exceptions.RequestException:
        _LOGGER.error('Error    fetching    data:    %s', self._request)
        self.data = None
