'Get the latest data from Emoncms.'

@Throttle(MIN_TIME_BETWEEN_UPDATES)
def update(self):

    try:
        parameters = {'apikey': self._apikey}
        req = requests.get(self._url, params=parameters, allow_redirects=True, timeout=5)
    except requests.exceptions.RequestException as exception:
        _LOGGER.error(exception)
        return
    else:
        if (req.status_code == 200):
            self.data = req.json()
        else:
            _LOGGER.error("Please    verify    if    the    specified    config    value    '%s'    is    correct!    (HTTP    Status_code    =    %d)", CONF_URL, req.status_code)
