aimedb: add enable toggle
This commit is contained in:
1 parent
a676e42a59
commit
bb752563cc
3 files changed
+10
-1
No files matched your search
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user