mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Increase timeout to 30 seconds for homeassistant_alerts integration (#93089)
This commit is contained in:
parent
00b600bfa8
commit
7cdd6b4cbc
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user