summaryrefslogtreecommitdiff
path: root/src/relay_mqtt_bot.py
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2023-06-08 20:37:37 +0300
committerEvgeny Zinoviev <me@ch1p.io>2023-06-08 20:37:37 +0300
commiteed52f7620cebd9729d24743aca6cfdaf997ab89 (patch)
tree8030697a95e13edd21d84db4671d133a29e835be /src/relay_mqtt_bot.py
parent5b5c433df3298b4ec95bc68e870b168184782f70 (diff)
wip
Diffstat (limited to 'src/relay_mqtt_bot.py')
-rwxr-xr-xsrc/relay_mqtt_bot.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/relay_mqtt_bot.py b/src/relay_mqtt_bot.py
index e7fa613..f6a1532 100755
--- a/src/relay_mqtt_bot.py
+++ b/src/relay_mqtt_bot.py
@@ -90,7 +90,7 @@ def markup(ctx: Optional[bot.Context]) -> Optional[ReplyKeyboardMarkup]:
if __name__ == '__main__':
devices = []
- mqtt = MqttWrapper()
+ mqtt = MqttWrapper(client_id='relay_mqtt_bot')
for device_id, data in config['relays'].items():
mqtt_node = MqttNode(node_id=device_id, node_secret=data['secret'])
relay_nodes[device_id] = mqtt_node.load_module('relay')