Increase timeout to 30 seconds for homeassistant_alerts integration (#93089)

This commit is contained in:
Nerdix
2023-05-17 13:15:28 +02:00
committed by GitHub
parent 00b600bfa8
commit 7cdd6b4cbc

View File

@@ -48,7 +48,7 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
try:
response = await async_get_clientsession(hass).get(
f"https://alerts.home-assistant.io/alerts/{alert.alert_id}.json",
timeout=aiohttp.ClientTimeout(total=10),
timeout=aiohttp.ClientTimeout(total=30),
)
except asyncio.TimeoutError:
_LOGGER.warning("Error fetching %s: timeout", alert.filename)