diff options
Diffstat (limited to 'kvmd/validators')
-rw-r--r-- | kvmd/validators/kvm.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kvmd/validators/kvm.py b/kvmd/validators/kvm.py index 40f5ced1..09bd7c2b 100644 --- a/kvmd/validators/kvm.py +++ b/kvmd/validators/kvm.py @@ -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"]) |