Skip to content

Commit

Permalink
And fix the flake8 spacing issues
Browse files Browse the repository at this point in the history
  • Loading branch information
palfrey committed Nov 25, 2023
1 parent 6140e5b commit 82639d7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pyvlx/api/api_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ def __init__(self, pyvlx: "PyVLX", timeout_in_seconds: int = 10):
self.timeout_handle: Optional[asyncio.TimerHandle] = None

async def do_api_call(self) -> None:
"""Start. Sending and waiting for answer."""
"""Start. Sending and waiting for answer."""
# We check for connection before entering the semaphore section
# because otherwise we might try to connect, which calls this, and we get stuck on
# the semaphore.
await self.pyvlx.check_connected()

async with self.pyvlx.sem:
self.pyvlx.connection.register_frame_received_cb(self.response_rec_callback)
await self.send_frame()
Expand Down
2 changes: 1 addition & 1 deletion pyvlx/pyvlx.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def __init__(self,
self.version = None
self.protocol_version = None
self.klf200 = Klf200Gateway(pyvlx=self)
self.sem = asyncio.Semaphore(1) # Limit parallel commands
self.sem = asyncio.Semaphore(1) # Limit parallel commands

async def connect(self) -> None:
"""Connect to KLF 200."""
Expand Down

0 comments on commit 82639d7

Please sign in to comment.