Tree: Switch to Pydantic 2

Pydantic 2 has more modern methods and stability compared to Pydantic 1

Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
kingbri
2023-12-17 01:06:10 -05:00
committed by Brian Dashore
parent f631dd6ff7
commit 51ca1ff396
8 changed files with 18 additions and 15 deletions

View File

@@ -18,7 +18,7 @@ def update_from_dict(options_dict: Dict[str, bool]):
if value is None:
value = False
config = LogConfig.parse_obj(options_dict)
config = LogConfig.model_validate(options_dict)
def broadcast_status():
enabled = []