From bc4a186c0fd050fcb6fc72245e7a437729b34df5 Mon Sep 17 00:00:00 2001 From: Gabriel de Biasi Date: Thu, 19 Dec 2024 14:30:58 -0300 Subject: [PATCH] reformat using ruff --- frigate/config/camera/onvif.py | 5 +---- frigate/ptz/onvif.py | 4 +++- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/frigate/config/camera/onvif.py b/frigate/config/camera/onvif.py index b87597bf71..0c79854540 100644 --- a/frigate/config/camera/onvif.py +++ b/frigate/config/camera/onvif.py @@ -74,10 +74,7 @@ class OnvifConfig(FrigateBaseModel): port: int = Field(default=8000, title="Onvif Port") user: Optional[EnvString] = Field(default=None, title="Onvif Username") password: Optional[EnvString] = Field(default=None, title="Onvif Password") - tls_insecure: bool = Field( - default=False, - title="Onvif Disable TLS verification" - ) + tls_insecure: bool = Field(default=False, title="Onvif Disable TLS verification") autotracking: PtzAutotrackConfig = Field( default_factory=PtzAutotrackConfig, title="PTZ auto tracking config.", diff --git a/frigate/ptz/onvif.py b/frigate/ptz/onvif.py index a48c235ee2..21c973baab 100644 --- a/frigate/ptz/onvif.py +++ b/frigate/ptz/onvif.py @@ -51,7 +51,9 @@ def __init__( try: session = requests.Session() session.verify = not cam.onvif.tls_insecure - transport = Transport(timeout=10, operation_timeout=10, session=session) + transport = Transport( + timeout=10, operation_timeout=10, session=session + ) self.cams[cam_name] = { "onvif": ONVIFCamera( cam.onvif.host,