summaryrefslogtreecommitdiff
path: root/kvmd/plugins/atx/disabled.py
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2020-09-09 16:21:49 +0300
committerDevaev Maxim <[email protected]>2020-09-09 16:21:49 +0300
commit015baee6d719723672037b0ea738106fbd2c8198 (patch)
tree9e3c4eaf8029fe9baec611323773c7a399986cd5 /kvmd/plugins/atx/disabled.py
parent2d44539484c56c6300a582ea026728442d9bc618 (diff)
sync atx api
Diffstat (limited to 'kvmd/plugins/atx/disabled.py')
-rw-r--r--kvmd/plugins/atx/disabled.py21
1 files changed, 4 insertions, 17 deletions
diff --git a/kvmd/plugins/atx/disabled.py b/kvmd/plugins/atx/disabled.py
index 93cfbb5b..c60e2743 100644
--- a/kvmd/plugins/atx/disabled.py
+++ b/kvmd/plugins/atx/disabled.py
@@ -54,25 +54,12 @@ class Plugin(BaseAtx):
# =====
- async def power_on(self) -> bool:
+ async def __stub_power(self, wait: bool) -> bool:
raise AtxDisabledError()
- async def power_off(self) -> bool:
- raise AtxDisabledError()
-
- async def power_off_hard(self) -> bool:
- raise AtxDisabledError()
-
- async def power_reset_hard(self) -> bool:
- raise AtxDisabledError()
+ power_on = power_off = power_off_hard = power_reset_hard = __stub_power
- # =====
-
- async def click_power(self) -> None:
+ async def __stub_click(self, wait: bool) -> None:
raise AtxDisabledError()
- async def click_power_long(self) -> None:
- raise AtxDisabledError()
-
- async def click_reset(self) -> None:
- raise AtxDisabledError()
+ click_power = click_power_long = click_reset = __stub_click