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.")