summaryrefslogtreecommitdiff
path: root/kvmd/plugins/atx/disabled.py
diff options
context:
space:
mode:
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