mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-02-01 18:41:54 +08:00
improved pins validation
This commit is contained in:
@@ -112,7 +112,7 @@ class Plugin(BaseUserGpioDriver): # pylint: disable=too-many-instance-attribute
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def get_pin_validator(cls) -> Callable[[Any], str]:
|
||||
def get_pin_validator(cls) -> Callable[[Any], Any]:
|
||||
actions = ["0", *_OUTPUTS, "status", *_OUTPUTS.values()]
|
||||
return (lambda arg: check_string_in_list(arg, "IPMI action", actions))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user