From 23273ba21b4002f05ffb8e3ec32fdcbce6085146 Mon Sep 17 00:00:00 2001 From: Vania Toperich Date: Thu, 13 Feb 2025 15:20:56 +0100 Subject: [PATCH] ruff formating --- frigate/ptz/onvif.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/frigate/ptz/onvif.py b/frigate/ptz/onvif.py index 238d08535..8190d8f8e 100644 --- a/frigate/ptz/onvif.py +++ b/frigate/ptz/onvif.py @@ -65,7 +65,6 @@ class OnvifController: self.failed_cams.remove(cam_name) sleep(60) - def _setup_onvif(self, camera_name: str) -> bool: try: onvif: ONVIFCamera = ONVIFCamera( @@ -73,9 +72,7 @@ class OnvifController: self.config.cameras[camera_name].onvif.port, self.config.cameras[camera_name].onvif.user, self.config.cameras[camera_name].onvif.password, - wsdl_dir=str( - Path(find_spec("onvif").origin).parent / "wsdl" - ), + wsdl_dir=str(Path(find_spec("onvif").origin).parent / "wsdl"), adjust_time=self.config.cameras[camera_name].onvif.ignore_time_mismatch, encrypt=not self.config.cameras[camera_name].onvif.tls_insecure, )