ruff lint

This commit is contained in:
Andrew Roberts 2025-12-21 22:54:05 -05:00
parent a0d7a2c1a5
commit de893a2a95

View File

@ -549,7 +549,9 @@ class FrigateConfig(FrigateBaseModel):
# This allows per-camera override for exports (e.g., when camera resolution # This allows per-camera override for exports (e.g., when camera resolution
# exceeds hardware encoder limits) # exceeds hardware encoder limits)
if camera_config.record.export.hwaccel_args == "auto": if camera_config.record.export.hwaccel_args == "auto":
camera_config.record.export.hwaccel_args = camera_config.ffmpeg.hwaccel_args camera_config.record.export.hwaccel_args = (
camera_config.ffmpeg.hwaccel_args
)
for input in camera_config.ffmpeg.inputs: for input in camera_config.ffmpeg.inputs:
need_detect_dimensions = "detect" in input.roles and ( need_detect_dimensions = "detect" in input.roles and (