mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-31 18:11:54 +08:00
refactoring
This commit is contained in:
@@ -75,7 +75,7 @@ class Plugin(BaseUserGpioDriver):
|
||||
@classmethod
|
||||
def get_plugin_options(cls) -> Dict:
|
||||
return {
|
||||
"device": Option("", type=valid_abs_path, unpack_as="device_path"),
|
||||
"device": Option("", type=valid_abs_path, unpack_as="device_path"),
|
||||
"state_poll": Option(5.0, type=valid_float_f01),
|
||||
}
|
||||
|
||||
|
||||
@@ -64,7 +64,7 @@ class Plugin(BaseUserGpioDriver): # pylint: disable=too-many-instance-attribute
|
||||
def get_plugin_options(cls) -> Dict:
|
||||
return {
|
||||
"ip": Option("255.255.255.255", type=functools.partial(valid_ip, v6=False)),
|
||||
"port": Option(9, type=valid_port),
|
||||
"port": Option(9, type=valid_port),
|
||||
"mac": Option("", type=valid_mac, if_empty=""),
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user