From c88c64aad1e5550e79f2adfb775b54bc36fb604e Mon Sep 17 00:00:00 2001 From: Chris Caron Date: Sat, 2 Aug 2025 12:13:52 -0400 Subject: [PATCH] Apprise decorator to remain backwards compatible after rework in #1368 (#1382) --- apprise/decorators/base.py | 2 +- tests/test_apprise_cli.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apprise/decorators/base.py b/apprise/decorators/base.py index 87508b22..36e87643 100644 --- a/apprise/decorators/base.py +++ b/apprise/decorators/base.py @@ -175,7 +175,7 @@ class CustomNotifyPlugin(NotifyBase): result = self.__send( body, title, - notify_type, + notify_type.value, *args, meta=self._default_args, **kwargs, diff --git a/tests/test_apprise_cli.py b/tests/test_apprise_cli.py index dddb4394..7008ec4d 100644 --- a/tests/test_apprise_cli.py +++ b/tests/test_apprise_cli.py @@ -2008,7 +2008,7 @@ def test_apprise_cli_plugin_loading(mock_post, tmpdir): @notify(on="clihook") def mywrapper(body, title, notify_type, *args, **kwargs): # A simple test - print to screen - print("{}: {} - {}".format(notify_type.value, title, body)) + print("{}: {} - {}".format(notify_type, title, body)) # No return (so a return of None) get's translated to True @@ -2016,7 +2016,7 @@ def test_apprise_cli_plugin_loading(mock_post, tmpdir): @notify(on="clihookA") def mywrapper(body, title, notify_type, *args, **kwargs): # A simple test - print to screen - print("!! {}: {} - {}".format(notify_type.value, title, body)) + print("!! {}: {} - {}".format(notify_type, title, body)) # No return (so a return of None) get's translated to True """))