Skip to content

Commit

Permalink
[Apprise] Add deprecation warning about outdated usage
Browse files Browse the repository at this point in the history
  • Loading branch information
amotl committed Feb 13, 2023
1 parent 653cecc commit f2e5204
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion HANDBOOK.md
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ baseuri = 'json://localhost:1234/mqtthook'
; https://github.com/caronc/apprise/wiki/Notify_discord
; https://discord.com/developers/docs/resources/webhook
; discord://{WebhookID}/{WebhookToken}/
module = 'apprise'
module = 'apprise_single'
baseuri = 'discord://4174216298/JHMHI8qBe7bk2ZwO5U711o3dV_js'
[config:apprise-ntfy]
Expand Down
6 changes: 6 additions & 0 deletions mqttwarn/services/apprise.py
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
import warnings

from mqttwarn.services.apprise_single import plugin

warnings.warn("`mqttwarn.services.apprise` will be removed in a future release of mqttwarn. "
"Please use `mqttwarn.services.apprise_single` or `mqttwarn.services.apprise_multi` instead.",
category=DeprecationWarning)

0 comments on commit f2e5204

Please sign in to comment.