mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-08 20:25:26 +03:00
formatting
This commit is contained in:
parent
e51706d868
commit
46cee7ff3d
@ -1330,7 +1330,9 @@ class FrigateConfig(FrigateBaseModel):
|
||||
|
||||
for key, detector in config.detectors.items():
|
||||
adapter = TypeAdapter(DetectorConfig)
|
||||
model_dict = detector if isinstance(detector, dict) else detector.model_dump()
|
||||
model_dict = (
|
||||
detector if isinstance(detector, dict) else detector.model_dump()
|
||||
)
|
||||
detector_config: DetectorConfig = adapter.validate_python(model_dict)
|
||||
if detector_config.model is None:
|
||||
detector_config.model = config.model
|
||||
|
||||
Loading…
Reference in New Issue
Block a user