'Get the latest data from openexchangerates.org.'

@Throttle(MIN_TIME_BETWEEN_UPDATES)
def update(self):

    try:
        result = requests.get(self._resource, params=self._parameters, timeout=10)
        self.data = result.json()['rates']
    except requests.exceptions.HTTPError:
        _LOGGER.error('Check    the    Openexchangerates    API    key')
        self.data = None
        return False
