aimedb: add enable toggle

This commit is contained in:
2024-01-11 12:25:35 -05:00
parent a676e42a59
commit bb752563cc
3 changed files with 10 additions and 1 deletions

View File

@ -314,6 +314,12 @@ class AimedbConfig:
def __init__(self, parent_config: "CoreConfig") -> None:
self.__config = parent_config
@property
def enable(self) -> bool:
return CoreConfig.get_config_field(
self.__config, "core", "aimedb", "enable", default=True
)
@property
def loglevel(self) -> int:
return CoreConfig.str_to_loglevel(