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:
@@ -43,6 +43,11 @@ class BaseHid(BasePlugin):
|
||||
async def reset(self) -> None:
|
||||
raise NotImplementedError
|
||||
|
||||
async def cleanup(self) -> None:
|
||||
pass
|
||||
|
||||
# =====
|
||||
|
||||
async def send_key_event(self, key: str, state: bool) -> None:
|
||||
raise NotImplementedError
|
||||
|
||||
@@ -58,9 +63,6 @@ class BaseHid(BasePlugin):
|
||||
async def clear_events(self) -> None:
|
||||
raise NotImplementedError
|
||||
|
||||
async def cleanup(self) -> None:
|
||||
pass
|
||||
|
||||
|
||||
# =====
|
||||
def get_hid_class(name: str) -> Type[BaseHid]:
|
||||
|
||||
Reference in New Issue
Block a user