mirror of
https://github.com/zvx-echo6/meshai.git
synced 2026-06-10 17:04:45 +02:00
fix: add missing _dict_to_dataclass branch for EnvironmentalConfig
Without this branch, the environmental config dict falls through to the bare else clause, storing a raw dict instead of an EnvironmentalConfig dataclass. This causes AttributeError when accessing env_cfg.enabled or any nested feed config attributes. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
15f2b6c89a
commit
6f76c897e5
1 changed files with 2 additions and 0 deletions
|
|
@ -820,6 +820,8 @@ def _dict_to_dataclass(cls, data: dict):
|
||||||
kwargs[key] = _dict_to_dataclass(WZDxConfig, value)
|
kwargs[key] = _dict_to_dataclass(WZDxConfig, value)
|
||||||
elif key == "firms" and isinstance(value, dict):
|
elif key == "firms" and isinstance(value, dict):
|
||||||
kwargs[key] = _dict_to_dataclass(FIRMSConfig, value)
|
kwargs[key] = _dict_to_dataclass(FIRMSConfig, value)
|
||||||
|
elif key == "environmental" and isinstance(value, dict):
|
||||||
|
kwargs[key] = _dict_to_dataclass(EnvironmentalConfig, value)
|
||||||
elif key == "dashboard" and isinstance(value, dict):
|
elif key == "dashboard" and isinstance(value, dict):
|
||||||
kwargs[key] = _dict_to_dataclass(DashboardConfig, value)
|
kwargs[key] = _dict_to_dataclass(DashboardConfig, value)
|
||||||
elif key == "toggles" and isinstance(value, dict):
|
elif key == "toggles" and isinstance(value, dict):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue