mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
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:
parent
2e169320a4
commit
94f24e6d49
@ -20,7 +20,7 @@ from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
|||||||
from homeassistant.helpers import config_validation as cv
|
from homeassistant.helpers import config_validation as cv
|
||||||
from homeassistant.util import Throttle
|
from homeassistant.util import Throttle
|
||||||
|
|
||||||
REQUIREMENTS = ['pyipma==1.1.3']
|
REQUIREMENTS = ['pyipma==1.1.4']
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_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),
|
station = await Station.get(websession, float(latitude),
|
||||||
float(longitude))
|
float(longitude))
|
||||||
|
|
||||||
_LOGGER.debug("Initializing ipma weather: coordinates %s, %s",
|
_LOGGER.debug("Initializing for coordinates %s, %s -> station %s",
|
||||||
latitude, longitude)
|
latitude, longitude, station.local)
|
||||||
|
|
||||||
async_add_entities([IPMAWeather(station, config)], True)
|
async_add_entities([IPMAWeather(station, config)], True)
|
||||||
|
|
||||||
@ -93,6 +93,8 @@ class IPMAWeather(WeatherEntity):
|
|||||||
"""Update Condition and Forecast."""
|
"""Update Condition and Forecast."""
|
||||||
with async_timeout.timeout(10, loop=self.hass.loop):
|
with async_timeout.timeout(10, loop=self.hass.loop):
|
||||||
self._condition = await self._station.observation()
|
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._forecast = await self._station.forecast()
|
||||||
self._description = self._forecast[0].description
|
self._description = self._forecast[0].description
|
||||||
|
|
||||||
|
@ -929,7 +929,7 @@ pyialarm==0.2
|
|||||||
pyicloud==0.9.1
|
pyicloud==0.9.1
|
||||||
|
|
||||||
# homeassistant.components.weather.ipma
|
# homeassistant.components.weather.ipma
|
||||||
pyipma==1.1.3
|
pyipma==1.1.4
|
||||||
|
|
||||||
# homeassistant.components.sensor.irish_rail_transport
|
# homeassistant.components.sensor.irish_rail_transport
|
||||||
pyirishrail==0.0.2
|
pyirishrail==0.0.2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user