Skip to content

Commit

Permalink
reformat using ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielbiasi committed Dec 19, 2024
1 parent 9cf4204 commit bc4a186
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 1 addition & 4 deletions frigate/config/camera/onvif.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down
4 changes: 3 additions & 1 deletion frigate/ptz/onvif.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit bc4a186

Please sign in to comment.