Skip to content

Commit cf52fb7

Browse files
committed
[Apprise] Add deprecation warning about outdated usage
1 parent d4af1f3 commit cf52fb7

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

HANDBOOK.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ baseuri = 'json://localhost:1234/mqtthook'
600600
; https://github.com/caronc/apprise/wiki/Notify_discord
601601
; https://discord.com/developers/docs/resources/webhook
602602
; discord://{WebhookID}/{WebhookToken}/
603-
module = 'apprise'
603+
module = 'apprise_single'
604604
baseuri = 'discord://4174216298/JHMHI8qBe7bk2ZwO5U711o3dV_js'
605605
606606
[config:apprise-ntfy]

mqttwarn/services/apprise.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
1+
import warnings
2+
13
from mqttwarn.services.apprise_single import plugin
4+
5+
warnings.warn("`mqttwarn.services.apprise` will be removed in a future release of mqttwarn. "
6+
"Please use `mqttwarn.services.apprise_single` or `mqttwarn.services.apprise_multi` instead.",
7+
category=DeprecationWarning)

0 commit comments

Comments
 (0)