refactoring

This commit is contained in:
Devaev Maxim
2019-09-24 06:19:29 +03:00
parent e97a2ea251
commit d3d885e180
3 changed files with 31 additions and 23 deletions

View File

@@ -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]: