mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 09:01:54 +08:00
improved pins validation
This commit is contained in:
@@ -75,7 +75,9 @@ class BaseUserGpioDriver(BasePlugin):
|
||||
return set(UserGpioModes.ALL)
|
||||
|
||||
@classmethod
|
||||
def get_pin_validator(cls) -> Callable[[Any], str]:
|
||||
def get_pin_validator(cls) -> Callable[[Any], Any]:
|
||||
# XXX: The returned value will be forcibly converted to a string
|
||||
# in kvmd/apps/kvmd/ugpio.py, i.e. AFTER validation.
|
||||
raise NotImplementedError
|
||||
|
||||
def register_input(self, pin: str, debounce: float) -> None:
|
||||
|
||||
Reference in New Issue
Block a user