Upgrade pyowm to 2.5.0 (#3806)

pull/3812/head
Fabian Affolter 2016-10-11 08:23:32 +02:00 committed by Paulus Schoutsen
parent 87d9cdd78f
commit 63580f9e03
2 changed files with 5 additions and 5 deletions

View File

@ -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()

View File

@ -361,7 +361,7 @@ pynetio==0.1.6
pynx584==0.2
# homeassistant.components.sensor.openweathermap
pyowm==2.4.0
pyowm==2.5.0
# homeassistant.components.switch.acer_projector
pyserial==3.1.1