summaryrefslogtreecommitdiff
path: root/src/relay_mqtt_bot.py
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2023-01-01 02:33:33 +0300
committerEvgeny Zinoviev <me@ch1p.io>2023-01-01 02:33:33 +0300
commitd2a5d8c6c2a2ae27e650ec26183e7b9881b939c7 (patch)
treec8d643d2a7fcd16c40c660bc5ea12fb355af43fb /src/relay_mqtt_bot.py
parentebdedacf2f8daa75e4473f1f87129cc2a3a56893 (diff)
relay_mqtt_*: add monitoring util, improve overall support
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 9dddc4c..6fc981b 100755
--- a/src/relay_mqtt_bot.py
+++ b/src/relay_mqtt_bot.py
@@ -87,7 +87,7 @@ def markup(ctx: Optional[bot.Context]) -> Optional[ReplyKeyboardMarkup]:
if __name__ == '__main__':
devices = []
for device_id, data in config['relays'].items():
- devices.append(MQTTRelayDevice(home_id=device_id,
+ devices.append(MQTTRelayDevice(id=device_id,
secret=data['secret']))
labels = data['labels']
bot.lang.ru(**{device_id: labels['ru']})