From 646f138063fbc6cb600819376465a0400e63c0a2 Mon Sep 17 00:00:00 2001 From: Thomas A Date: Sat, 24 May 2025 21:25:33 +0200 Subject: [PATCH] Add ruff formatting --- frigate/config/config.py | 4 +++- frigate/detectors/detector_config.py | 4 +--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frigate/config/config.py b/frigate/config/config.py index 0284e5d35..8a03b4d41 100644 --- a/frigate/config/config.py +++ b/frigate/config/config.py @@ -514,7 +514,9 @@ class FrigateConfig(FrigateBaseModel): # If using a local file, verify that the model path points to an existing file. if not model_config["path"].startswith("plus://"): if not os.path.exists(model_config["path"]): - raise ValueError(f"Model path '{model_config['path']}' does not exist.") + raise ValueError( + f"Model path '{model_config['path']}' does not exist." + ) model = ModelConfig.model_validate(model_config) model.check_and_load_plus_model(self.plus_api, detector_config.type) diff --git a/frigate/detectors/detector_config.py b/frigate/detectors/detector_config.py index 369aefb05..5c9baac73 100644 --- a/frigate/detectors/detector_config.py +++ b/frigate/detectors/detector_config.py @@ -108,9 +108,7 @@ class ModelConfig(BaseModel): # If using a local file, verify that the labelmap path points to an existing file. if not path.startswith("plus://"): if not os.path.exists(path): - raise ValueError( - f"Model labelmap_path '{path}' does not exist." - ) + raise ValueError(f"Model labelmap_path '{path}' does not exist.") self._merged_labelmap = { **load_labels(path),