mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 00:51:53 +08:00
simplified AioNotifier()
This commit is contained in:
@@ -109,7 +109,7 @@ class Plugin(BaseUserGpioDriver):
|
||||
except Exception:
|
||||
raw = -1
|
||||
if raw != prev_raw:
|
||||
await self._notifier.notify()
|
||||
self._notifier.notify()
|
||||
prev_raw = raw
|
||||
await asyncio.sleep(self.__state_poll)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user