diff options
author | Maxim Devaev <[email protected]> | 2024-10-26 15:51:33 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2024-10-26 15:51:33 +0300 |
commit | a84242c9bc5215c7230dd9552cbbeec786060ec3 (patch) | |
tree | 7918ea96b79a3e20f2142d5fac2cdf242c5ece80 /kvmd/plugins/atx/gpio.py | |
parent | 399712c6849b52efcb1b1ee9f4abdafa84c5812f (diff) |
AioExclusiveRegion API is sync now
Diffstat (limited to 'kvmd/plugins/atx/gpio.py')
-rw-r--r-- | kvmd/plugins/atx/gpio.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kvmd/plugins/atx/gpio.py b/kvmd/plugins/atx/gpio.py index e42b3959..578d2717 100644 --- a/kvmd/plugins/atx/gpio.py +++ b/kvmd/plugins/atx/gpio.py @@ -191,7 +191,7 @@ class Plugin(BaseAtx): # pylint: disable=too-many-instance-attributes @aiotools.atomic_fg async def __click(self, name: str, pin: int, delay: float, wait: bool) -> None: if wait: - async with self.__region: + with self.__region: await self.__inner_click(name, pin, delay) else: await aiotools.run_region_task( |