mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-18 17:14:26 +03:00
ruff formating
This commit is contained in:
parent
29bd4335b9
commit
23273ba21b
@ -65,7 +65,6 @@ class OnvifController:
|
|||||||
self.failed_cams.remove(cam_name)
|
self.failed_cams.remove(cam_name)
|
||||||
sleep(60)
|
sleep(60)
|
||||||
|
|
||||||
|
|
||||||
def _setup_onvif(self, camera_name: str) -> bool:
|
def _setup_onvif(self, camera_name: str) -> bool:
|
||||||
try:
|
try:
|
||||||
onvif: ONVIFCamera = ONVIFCamera(
|
onvif: ONVIFCamera = ONVIFCamera(
|
||||||
@ -73,9 +72,7 @@ class OnvifController:
|
|||||||
self.config.cameras[camera_name].onvif.port,
|
self.config.cameras[camera_name].onvif.port,
|
||||||
self.config.cameras[camera_name].onvif.user,
|
self.config.cameras[camera_name].onvif.user,
|
||||||
self.config.cameras[camera_name].onvif.password,
|
self.config.cameras[camera_name].onvif.password,
|
||||||
wsdl_dir=str(
|
wsdl_dir=str(Path(find_spec("onvif").origin).parent / "wsdl"),
|
||||||
Path(find_spec("onvif").origin).parent / "wsdl"
|
|
||||||
),
|
|
||||||
adjust_time=self.config.cameras[camera_name].onvif.ignore_time_mismatch,
|
adjust_time=self.config.cameras[camera_name].onvif.ignore_time_mismatch,
|
||||||
encrypt=not self.config.cameras[camera_name].onvif.tls_insecure,
|
encrypt=not self.config.cameras[camera_name].onvif.tls_insecure,
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user