highlevel atx api

This commit is contained in:
Devaev Maxim
2019-04-27 22:09:58 +03:00
parent d4c597e945
commit 380b1d15e3
4 changed files with 66 additions and 1 deletions

View File

@@ -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"])