From 5a514fdcce705a8a3bd521d41232606d5634ac71 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Thu, 14 Sep 2023 01:09:03 +0200 Subject: [PATCH] Only support the `run_topic` logic on the MQTT plugin. Plugins that extend `MqttPlugin` shouldn't run messages as requests, even if the parent MQTT plugin is configured to do so. --- platypush/plugins/mqtt/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platypush/plugins/mqtt/__init__.py b/platypush/plugins/mqtt/__init__.py index 2ba0e39415..a40c6253e6 100644 --- a/platypush/plugins/mqtt/__init__.py +++ b/platypush/plugins/mqtt/__init__.py @@ -137,7 +137,7 @@ class MqttPlugin(RunnablePlugin): self.client_id = client_id or str(Config.get('device_id')) self.run_topic = ( f'{run_topic_prefix}/{Config.get("device_id")}' - if run_topic_prefix + if type(self) == MqttPlugin and run_topic_prefix else None )