ruff formating

This commit is contained in:
Vania Toperich 2025-02-13 15:20:56 +01:00
parent 29bd4335b9
commit 23273ba21b

View File

@ -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,
)