Bump to aiohttp 3.8.0 (#58974)
This commit is contained in:
parent
23cb396aad
commit
10d6247fee
106 changed files with 221 additions and 142 deletions
|
@ -419,7 +419,7 @@ class UniFiController:
|
|||
async def async_reconnect(self) -> None:
|
||||
"""Try to reconnect UniFi session."""
|
||||
try:
|
||||
with async_timeout.timeout(5):
|
||||
async with async_timeout.timeout(5):
|
||||
await self.api.login()
|
||||
self.api.start_websocket()
|
||||
|
||||
|
@ -488,7 +488,7 @@ async def get_controller(
|
|||
)
|
||||
|
||||
try:
|
||||
with async_timeout.timeout(10):
|
||||
async with async_timeout.timeout(10):
|
||||
await controller.check_unifi_os()
|
||||
await controller.login()
|
||||
return controller
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue