Skip to content

Commit

Permalink
Add formatting of {cam_name} and {img} to webhooks.py
Browse files Browse the repository at this point in the history
See #1378
formatting of {params} in webhooks URLs have been missing since 2.9.x. This patch adds it back to send_webhooks
  • Loading branch information
traviswparker authored Oct 31, 2024
1 parent bf89374 commit 73230a0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/wyzebridge/webhooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ def send_webhook(event: str, camera: str, msg: str, img: Optional[str] = None) -
if not (url := env_cam(f"{event}_webhooks", camera, style="original")):
return

url = url.format(cam_name=camera, img=str(img))

header = {
"user-agent": f"wyzebridge/{VERSION}",
"X-Title": f"{event} event".title(),
Expand Down

0 comments on commit 73230a0

Please sign in to comment.