'Get the latest data from OpenWeatherMap.'

@Throttle(MIN_TIME_BETWEEN_UPDATES)
def update(self):

    try:
        obs = self.owm.weather_at_coords(self.latitude, self.longitude)
    except TypeError:
        obs = None
    if (obs is None):
        _LOGGER.warning('Failed    to    fetch    data')
        return
    self.data = obs.get_weather()
    if (self.forecast == 1):
        try:
            obs = self.owm.three_hours_forecast_at_coords(self.latitude, self.longitude)
            self.fc_data = obs.get_forecast()
        except TypeError:
            _LOGGER.warning('Failed    to    fetch    forecast')
