'Get the latest data from WUnderground.'

@Throttle(MIN_TIME_BETWEEN_UPDATES)
def update(self):

    try:
        result = requests.get(self._build_url(), timeout=10).json()
        if ('error' in result['response']):
            raise ValueError(result['response']['error']['description'])
        else:
            self.data = result
    except ValueError as err:
        _LOGGER.error('Check    WUnderground    API    %s', err.args)
        self.data = None
