summaryrefslogtreecommitdiff
path: root/kvmd/plugins/atx
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2019-09-24 06:19:29 +0300
committerDevaev Maxim <[email protected]>2019-09-24 06:19:29 +0300
commitd3d885e1801392fffbd07656f8692c5be6014edd (patch)
treece8f5dfed01d9d5f1823b45c82c86635ee2b9786 /kvmd/plugins/atx
parente97a2ea251dc2063998122f750940cf8e690d211 (diff)
refactoring
Diffstat (limited to 'kvmd/plugins/atx')
-rw-r--r--kvmd/plugins/atx/__init__.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/kvmd/plugins/atx/__init__.py b/kvmd/plugins/atx/__init__.py
index 902e3e7c..f05cef78 100644
--- a/kvmd/plugins/atx/__init__.py
+++ b/kvmd/plugins/atx/__init__.py
@@ -51,6 +51,11 @@ class BaseAtx(BasePlugin):
yield {}
raise NotImplementedError
+ async def cleanup(self) -> None:
+ pass
+
+ # =====
+
async def power_on(self) -> bool:
raise NotImplementedError
@@ -63,6 +68,8 @@ class BaseAtx(BasePlugin):
async def power_reset_hard(self) -> bool:
raise NotImplementedError
+ # =====
+
async def click_power(self) -> None:
raise NotImplementedError
@@ -72,9 +79,6 @@ class BaseAtx(BasePlugin):
async def click_reset(self) -> None:
raise NotImplementedError
- async def cleanup(self) -> None:
- pass
-
# =====
def get_atx_class(name: str) -> Type[BaseAtx]: