Skip to content

Commit

Permalink
Add system services (#391)
Browse files Browse the repository at this point in the history
* Add system services

* Fix docstring typo
  • Loading branch information
Vaskivskyi authored Nov 20, 2023
1 parent b3fa98c commit 6040389
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions asusrouter/modules/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,20 @@ class AsusSystem(str, Enum):
"""Asus system enum."""

REBOOT = "reboot"
RESTART_CHPASS = "restart_chpass"
RESTART_DNSMASQ = "restart_dnsmasq"
RESTART_FIREWALL = "restart_firewall"
RESTART_HTTPD = "restart_httpd"
RESTART_LEDS = "restart_leds"
RESTART_OPENVPND = "restart_openvpnd"
RESTART_SAMBA = "restart_samba"
RESTART_TIME = "restart_time"
RESTART_USB_IDLE = "restart_usb_idle"
RESTART_VPNC = "restart_vpnc"
RESTART_WIRELESS = "restart_wireless"
RESTART_WGS = "restart_wgs"
STOP_OPENVPND = "stop_openvpnd"
STOP_VPNC = "stop_vpnc"
UPDATE_CLIENTS = "update_clients"


Expand All @@ -21,9 +32,9 @@ async def set_state(
state: AsusSystem,
arguments: Optional[dict[str, Any]] = None,
expect_modify: bool = False,
extra_params: Optional[dict[Any, Any]] = None,
_: Optional[dict[Any, Any]] = None,
) -> bool:
"""Set the LED state."""
"""Set the system state."""

# Check if arguments are available
if not arguments:
Expand Down

0 comments on commit 6040389

Please sign in to comment.