mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 21:25:13 +02:00
Increase timeout to 30 seconds for homeassistant_alerts integration (#93089)
This commit is contained in:
@@ -48,7 +48,7 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
|||||||
try:
|
try:
|
||||||
response = await async_get_clientsession(hass).get(
|
response = await async_get_clientsession(hass).get(
|
||||||
f"https://alerts.home-assistant.io/alerts/{alert.alert_id}.json",
|
f"https://alerts.home-assistant.io/alerts/{alert.alert_id}.json",
|
||||||
timeout=aiohttp.ClientTimeout(total=10),
|
timeout=aiohttp.ClientTimeout(total=30),
|
||||||
)
|
)
|
||||||
except asyncio.TimeoutError:
|
except asyncio.TimeoutError:
|
||||||
_LOGGER.warning("Error fetching %s: timeout", alert.filename)
|
_LOGGER.warning("Error fetching %s: timeout", alert.filename)
|
||||||
|
Reference in New Issue
Block a user