diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2023-01-01 02:33:33 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2023-01-01 02:33:33 +0300 |
commit | d2a5d8c6c2a2ae27e650ec26183e7b9881b939c7 (patch) | |
tree | c8d643d2a7fcd16c40c660bc5ea12fb355af43fb /src/relay_mqtt_bot.py | |
parent | ebdedacf2f8daa75e4473f1f87129cc2a3a56893 (diff) |
relay_mqtt_*: add monitoring util, improve overall support
Diffstat (limited to 'src/relay_mqtt_bot.py')
-rwxr-xr-x | src/relay_mqtt_bot.py | 2 |
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']}) |