Upgrade pyipma (#17992)

* bump dependency version

* Add more context to debug message

Co-Authored-By: dgomes <diogogomes@gmail.com>

* shorten debug messages
This commit is contained in:
Diogo Gomes 2018-10-30 20:25:12 +00:00 committed by Fabian Affolter
parent 9cb5ea20af
commit 9565c0bd1d
2 changed files with 6 additions and 4 deletions

View File

@ -20,7 +20,7 @@ from homeassistant.helpers.aiohttp_client import async_get_clientsession
from homeassistant.helpers import config_validation as cv
from homeassistant.util import Throttle
REQUIREMENTS = ['pyipma==1.1.3']
REQUIREMENTS = ['pyipma==1.1.4']
_LOGGER = logging.getLogger(__name__)
@ -71,8 +71,8 @@ async def async_setup_platform(hass, config, async_add_entities,
station = await Station.get(websession, float(latitude),
float(longitude))
_LOGGER.debug("Initializing ipma weather: coordinates %s, %s",
latitude, longitude)
_LOGGER.debug("Initializing for coordinates %s, %s -> station %s",
latitude, longitude, station.local)
async_add_entities([IPMAWeather(station, config)], True)
@ -93,6 +93,8 @@ class IPMAWeather(WeatherEntity):
"""Update Condition and Forecast."""
with async_timeout.timeout(10, loop=self.hass.loop):
self._condition = await self._station.observation()
_LOGGER.debug("Updating station %s, condition %s",
self._station.local, self._condition)
self._forecast = await self._station.forecast()
self._description = self._forecast[0].description

View File

@ -937,7 +937,7 @@ pyialarm==0.2
pyicloud==0.9.1
# homeassistant.components.weather.ipma
pyipma==1.1.3
pyipma==1.1.4
# homeassistant.components.sensor.irish_rail_transport
pyirishrail==0.0.2