From 22d93f0373cac2320c464ff4fea7977ef0b01356 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Thu, 30 Jun 2022 10:28:00 -0700 Subject: [PATCH] Do not pass loop for Py3.10 compat --- homematicip/aio/connection.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/homematicip/aio/connection.py b/homematicip/aio/connection.py index 1c9f49bb..54f44e0e 100644 --- a/homematicip/aio/connection.py +++ b/homematicip/aio/connection.py @@ -31,7 +31,7 @@ def __init__(self, loop, session=None): super().__init__() self._loop = loop if session is None: - self._websession = aiohttp.ClientSession(loop=loop) + self._websession = aiohttp.ClientSession() else: self._websession = session self.socket_connection = None # ClientWebSocketResponse @@ -117,7 +117,6 @@ async def _connect_to_websocket(self): }, ), timeout=self.connect_timeout, - loop=self._loop, ) except asyncio.TimeoutError: raise HmipConnectionError("Connecting to hmip ws socket timed out.")