Prepare for aiohttp 3.11

This commit is contained in:
dmunozv04
2025-02-12 11:42:16 +01:00
parent 3c66dc3607
commit 7e80b41bbb

View File

@@ -167,7 +167,7 @@ def main(config, debug):
if debug:
loop.set_debug(True)
asyncio.set_event_loop(loop)
tcp_connector = aiohttp.TCPConnector(ttl_dns_cache=300)
tcp_connector = aiohttp.TCPConnector(loop=loop, ttl_dns_cache=300)
web_session = aiohttp.ClientSession(loop=loop, connector=tcp_connector)
api_helper = api_helpers.ApiHelper(config, web_session)
for i in config.devices: