summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2023-05-31 09:58:34 +0300
committerEvgeny Zinoviev <me@ch1p.io>2023-05-31 09:58:34 +0300
commite069acd1ed6f7125108b72e03224bf831d8827ef (patch)
tree58e907cad24db9ee9367281b11b23774dc15743f
parent52400c7208a6f90ec8516fa03693476403ee8a28 (diff)
fix
-rwxr-xr-xsrc/pump_bot.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pump_bot.py b/src/pump_bot.py
index 103f2f4..1996dfb 100755
--- a/src/pump_bot.py
+++ b/src/pump_bot.py
@@ -171,7 +171,7 @@ def markup(ctx: Optional[bot.Context]) -> Optional[ReplyKeyboardMarkup]:
if __name__ == '__main__':
mqtt = MqttNode(node_id=config.get('mqtt_water_relay.node_id'))
if is_development_mode():
- add_mqtt_module('diagnostics')
+ add_mqtt_module(mqtt, 'diagnostics')
mqtt_relay_module = add_mqtt_module(mqtt, 'relay')
mqtt.configure_tls()