diff options
author | Maxim Devaev <[email protected]> | 2022-08-07 19:04:32 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2022-08-07 19:04:32 +0300 |
commit | ec9785b4be4afb8667e6968a0454aeca62a190e2 (patch) | |
tree | 0b5c7d1b03041867c78f5533a8dd8f488711b073 /kvmd/aiogp.py | |
parent | aa630988cc09f31d412a62c5480d4bec1a7c626e (diff) |
simplified AioNotifier()
Diffstat (limited to 'kvmd/aiogp.py')
-rw-r--r-- | kvmd/aiogp.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kvmd/aiogp.py b/kvmd/aiogp.py index 534c82a9..6860c6ba 100644 --- a/kvmd/aiogp.py +++ b/kvmd/aiogp.py @@ -107,7 +107,7 @@ class AioReader: # pylint: disable=too-many-instance-attributes ) for (pin, value) in zip(pins, lines.get_values()) } - self.__loop.call_soon_threadsafe(self.__notifier.notify_sync) + self.__loop.call_soon_threadsafe(self.__notifier.notify) while not self.__stop_event.is_set(): ev_lines = lines.event_wait(1) @@ -170,5 +170,5 @@ class _DebouncedValue: value = await self.__queue.get() if self.__value != value: self.__value = value - await self.__notifier.notify() + self.__notifier.notify() await asyncio.sleep(self.__debounce) |