Skip to content

Commit

Permalink
Drop loop kwarg from async_timeout.timeout (#15)
Browse files Browse the repository at this point in the history
- async_timeout 4.0.0 drops the loop= kwarg and will fail if its passed
  • Loading branch information
bdraco authored Dec 29, 2021
1 parent e63e75a commit 58b095c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyenvisalink/envisalink_base_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ async def connect(self):
"""Internal method for making the physical connection."""
_LOGGER.info(str.format("Started to connect to Envisalink... at {0}:{1}", self._alarmPanel.host, self._alarmPanel.port))
try:
async with async_timeout.timeout(self._alarmPanel.connection_timeout, loop=self._eventLoop):
async with async_timeout.timeout(self._alarmPanel.connection_timeout):
coro = self._eventLoop.create_connection(lambda: self, self._alarmPanel.host, self._alarmPanel.port)
await coro
except:
Expand Down

0 comments on commit 58b095c

Please sign in to comment.