Upgrade pyowm to 2.5.0 (#3806)

This commit is contained in:
Fabian Affolter authored and Paulus Schoutsen committed 2016-10-10 23:23:32 -07:00
1 parent 87d9cdd78f
commit 63580f9e03
2 files changed
+5 -5

No files matched your search

@@ -17,7 +17,7 @@ import homeassistant.helpers.config_validation as cv
from homeassistant.helpers.entity import Entity
from homeassistant.util import Throttle
REQUIREMENTS = ['pyowm==2.4.0']
REQUIREMENTS = ['pyowm==2.5.0']
_LOGGER = logging.getLogger(__name__)
@@ -174,12 +174,12 @@ class WeatherData(object):
"""Get the latest data from OpenWeatherMap."""
obs = self.owm.weather_at_coords(self.latitude, self.longitude)
if obs is None:
_LOGGER.warning('Failed to fetch data from OWM')
_LOGGER.warning("Failed to fetch data from OpenWeatherMap")
return
self.data = obs.get_weather()
if self.forecast == 1:
obs = self.owm.three_hours_forecast_at_coords(self.latitude,
self.longitude)
obs = self.owm.three_hours_forecast_at_coords(
self.latitude, self.longitude)
self.fc_data = obs.get_forecast()