diff options
author | Devaev Maxim <[email protected]> | 2020-09-08 05:24:47 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2020-09-08 05:24:47 +0300 |
commit | 605b67ca761bdb5f5c3b255434f30624fa82a6c1 (patch) | |
tree | d7821a55ca5ec9e2da6b75bf2956dea6345de1a1 /kvmd/plugins/atx | |
parent | 4cc60e4d528c669af0c1f7478160ff57a4691af7 (diff) |
refactoring
Diffstat (limited to 'kvmd/plugins/atx')
-rw-r--r-- | kvmd/plugins/atx/gpio.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kvmd/plugins/atx/gpio.py b/kvmd/plugins/atx/gpio.py index 91ab7b5f..16f3e23f 100644 --- a/kvmd/plugins/atx/gpio.py +++ b/kvmd/plugins/atx/gpio.py @@ -71,13 +71,13 @@ class Plugin(BaseAtx): # pylint: disable=too-many-instance-attributes self.__click_delay = click_delay self.__long_click_delay = long_click_delay - self.__state_notifier = aiotools.AioNotifier() - self.__region = aiotools.AioExclusiveRegion(AtxIsBusyError, self.__state_notifier) + self.__notifier = aiotools.AioNotifier() + self.__region = aiotools.AioExclusiveRegion(AtxIsBusyError, self.__notifier) self.__reader = gpio.BatchReader( pins=set([self.__power_led_pin, self.__hdd_led_pin]), interval=state_poll, - notifier=self.__state_notifier, + notifier=self.__notifier, ) @classmethod @@ -113,7 +113,7 @@ class Plugin(BaseAtx): # pylint: disable=too-many-instance-attributes if state != prev_state: yield state prev_state = state - await self.__state_notifier.wait() + await self.__notifier.wait() async def systask(self) -> None: await self.__reader.poll() |