Skip to content

Commit

Permalink
Frigate-to-Ntfy: Update to apprise>=1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
amotl committed Apr 18, 2023
1 parent 0233887 commit b3540c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/frigate/test_frigate.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def test_frigate_event_new(mosquitto, ntfy_service, caplog, capmqtt):
assert "Message on frigate/events going to apprise-ntfy" in caplog.messages
assert "Invoking service plugin for `apprise-ntfy'" in caplog.messages
assert "ntfy Payload: {'topic': 'frigate', 'title': 'goat entered zone1', 'message': 'In zones at 2023-04-06 14:31:46.638857+00:00'}" in caplog.messages
assert "ntfy Headers: {'User-Agent': 'Apprise', 'Content-Type': 'application/json', 'X-Click': 'https://frigate/events?camera=cam-testdrive&label=goat&zone=zone1'}" in caplog.messages
assert "ntfy Headers: {'User-Agent': 'Apprise', 'Content-Type': 'application/json', 'X-Icon': 'https://github.com/caronc/apprise/raw/master/apprise/assets/themes/default/apprise-info-256x256.png', 'X-Click': 'https://frigate/events?camera=cam-testdrive&label=goat&zone=zone1'}" in caplog.messages

assert "Sent ntfy notification to 'http://localhost:5555'." in caplog.messages
assert "Successfully sent message using Apprise" in caplog.messages
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"apns>=2.0.1",
],
"apprise": [
"apprise<2",
"apprise>=1.3,<2",
],
"asterisk": [
"pyst2>=0.5.0",
Expand Down

0 comments on commit b3540c0

Please sign in to comment.