mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 00:51:53 +08:00
highlevel atx api
This commit is contained in:
@@ -30,6 +30,10 @@ from .basic import valid_number
|
||||
|
||||
|
||||
# =====
|
||||
def valid_atx_power_action(arg: Any) -> str:
|
||||
return check_string_in_list(arg, "ATX power action", ["on", "off", "off_soft", "reset"])
|
||||
|
||||
|
||||
def valid_atx_button(arg: Any) -> str:
|
||||
return check_string_in_list(arg, "ATX button", ["power", "power_long", "reset"])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user