From f37dfbf5a135254b589de12e0c4da2b53a887f1d Mon Sep 17 00:00:00 2001 From: Kenny Root Date: Fri, 15 Nov 2024 01:06:55 -0800 Subject: [PATCH] Unpin paho-mqtt version (#1238) The new update to paho-mqtt, version 2.1.0, fixed the backward incompatible callback signature problem by defaulting the callback type to paho-mqtt V1 style callbacks. This means that packages can upgrade to paho-mqtt 2.1.0 or leave it at <2.0.0 without any software changes. This was originally pinned with #1065. --- all-plugin-requirements.txt | 4 ++-- apprise/plugins/mqtt.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/all-plugin-requirements.txt b/all-plugin-requirements.txt index 5d70bb40..826901be 100644 --- a/all-plugin-requirements.txt +++ b/all-plugin-requirements.txt @@ -9,8 +9,8 @@ cryptography gntp # Provides mqtt:// support -# use v1.x due to https://github.com/eclipse/paho.mqtt.python/issues/814 -paho-mqtt < 2.0.0 +# use any version other than 2.0.x due to https://github.com/eclipse/paho.mqtt.python/issues/814 +paho-mqtt != 2.0.* # Pretty Good Privacy (PGP) Provides mailto:// and deltachat:// support PGPy diff --git a/apprise/plugins/mqtt.py b/apprise/plugins/mqtt.py index 4b21bf28..c13b2ece 100644 --- a/apprise/plugins/mqtt.py +++ b/apprise/plugins/mqtt.py @@ -89,7 +89,7 @@ class NotifyMQTT(NotifyBase): requirements = { # Define our required packaging in order to work - 'packages_required': 'paho-mqtt < 2.0.0' + 'packages_required': 'paho-mqtt != 2.0.*' } # The default descriptive name associated with the Notification