Merge mqtt backend and plugin #320

Merged
blacklight merged 21 commits from 315/merge-mqtt-backend-and-plugin into master 2023-09-17 02:51:48 +02:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 5a514fdcce - Show all commits

View File

@ -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
)