Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Commit

Permalink
Merge pull request #9 from rccoleman/async
Browse files Browse the repository at this point in the history
Fix callback call
  • Loading branch information
rccoleman authored Dec 18, 2020
2 parents 1d7bbde + fa091db commit 9d07520
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lmdirect/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ async def read_response_task(self):
finished_queue = await self.process_data(plaintext)

if self._callback is not None:
await self._callback(self._current_status, finished_queue)
self._callback(self._current_status, finished_queue)
if finished_queue:
break

Expand Down
2 changes: 1 addition & 1 deletion test.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def read_config(self):

return key, ip_addr

async def update(self, data, finished):
def update(self, data, finished):
_LOGGER.debug(
"Updated: {}, {}".format(data, "Finished" if finished else "Waiting")
)
Expand Down

0 comments on commit 9d07520

Please sign in to comment.