Bump to aiohttp 3.8.0 (#58974)

This commit is contained in:
J. Nick Koston 2021-11-04 10:07:50 -05:00 committed by GitHub
parent 23cb396aad
commit 10d6247fee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
106 changed files with 221 additions and 142 deletions

View file

@ -107,7 +107,7 @@ async def try_connect(
connect_task = None
try:
connect_task = asyncio.create_task(gateway.start())
with async_timeout.timeout(GATEWAY_READY_TIMEOUT):
async with async_timeout.timeout(GATEWAY_READY_TIMEOUT):
await gateway_ready.wait()
return True
except asyncio.TimeoutError:
@ -319,7 +319,7 @@ async def _gw_start(
# Gatways connected via mqtt doesn't send gateway ready message.
return
try:
with async_timeout.timeout(GATEWAY_READY_TIMEOUT):
async with async_timeout.timeout(GATEWAY_READY_TIMEOUT):
await gateway_ready.wait()
except asyncio.TimeoutError:
_LOGGER.warning(