mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-11-08 13:33:42 +08:00
12 lines
222 B
Python
12 lines
222 B
Python
"""Persistent StarPort enable state."""
|
|
|
|
PARAM = "StarPortEnabled"
|
|
|
|
|
|
def enabled(params) -> bool:
|
|
return params.get_bool(PARAM)
|
|
|
|
|
|
def set_enabled(params, value: bool) -> None:
|
|
params.put_bool(PARAM, value, block=True)
|