mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 15:17:35 +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:
|
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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user