formatting

This commit is contained in:
Josh Hawkins 2026-03-16 13:46:04 -05:00
parent 56679a041b
commit 78bc11d7e0
2 changed files with 4 additions and 9 deletions

View File

@ -177,10 +177,8 @@ def config(request: Request):
config_obj.active_profile is not None
and request.app.profile_manager is not None
):
base_sections = (
request.app.profile_manager.get_base_configs_for_api(
camera_name
)
base_sections = request.app.profile_manager.get_base_configs_for_api(
camera_name
)
if base_sections:
camera_dict["base_config"] = base_sections

View File

@ -70,8 +70,7 @@ class ProfileManager:
if section == "zones":
# zones is a dict of ZoneConfig models
self._base_configs[cam_name][section] = {
name: zone.model_dump()
for name, zone in section_value.items()
name: zone.model_dump() for name, zone in section_value.items()
}
self._base_api_configs[cam_name][section] = {
name: {
@ -85,9 +84,7 @@ class ProfileManager:
for name, zone in section_value.items()
}
else:
self._base_configs[cam_name][section] = (
section_value.model_dump()
)
self._base_configs[cam_name][section] = section_value.model_dump()
self._base_api_configs[cam_name][section] = (
section_value.model_dump(
mode="json",