mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-02-02 02:51:53 +08:00
simplified AioNotifier()
This commit is contained in:
@@ -135,7 +135,7 @@ class Plugin(BaseUserGpioDriver): # pylint: disable=too-many-instance-attribute
|
||||
await self.__update_power()
|
||||
new = (self.__online, self.__power)
|
||||
if new != prev:
|
||||
await self._notifier.notify()
|
||||
self._notifier.notify()
|
||||
prev = new
|
||||
await asyncio.sleep(self.__state_poll)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user