diff --git a/frigate/api/app.py b/frigate/api/app.py index d7abb8e47..cb408b447 100644 --- a/frigate/api/app.py +++ b/frigate/api/app.py @@ -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 diff --git a/frigate/config/profile_manager.py b/frigate/config/profile_manager.py index f60cd9a03..bb122cc1a 100644 --- a/frigate/config/profile_manager.py +++ b/frigate/config/profile_manager.py @@ -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",