forked from platypush/platypush
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.
This commit is contained in:
parent
4cb5aa7acb
commit
5a514fdcce
1 changed files with 1 additions and 1 deletions
|
@ -137,7 +137,7 @@ class MqttPlugin(RunnablePlugin):
|
||||||
self.client_id = client_id or str(Config.get('device_id'))
|
self.client_id = client_id or str(Config.get('device_id'))
|
||||||
self.run_topic = (
|
self.run_topic = (
|
||||||
f'{run_topic_prefix}/{Config.get("device_id")}'
|
f'{run_topic_prefix}/{Config.get("device_id")}'
|
||||||
if run_topic_prefix
|
if type(self) == MqttPlugin and run_topic_prefix
|
||||||
else None
|
else None
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue