mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 00:51:53 +08:00
refactoring
This commit is contained in:
@@ -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]:
|
||||
|
||||
Reference in New Issue
Block a user