diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2023-05-11 06:03:30 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2023-05-11 06:03:30 +0300 |
commit | 80e5172c0e7174d22f1f30a144fbcd21f722e792 (patch) | |
tree | ad67726efb46890081c65ae003b759c427f901d6 /tools | |
parent | 883f3181392b1f46c9299cf28396cf635c8ac492 (diff) |
fix
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/mcuota.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/mcuota.py b/tools/mcuota.py index 21cd25a..46968a8 100755 --- a/tools/mcuota.py +++ b/tools/mcuota.py @@ -10,7 +10,8 @@ sys.path.extend([ from time import sleep from argparse import ArgumentParser from src.home.config import config -from src.home.mqtt import MqttRelay, MQTTESPDevice +from src.home.mqtt import MqttRelay +from src.home.mqtt.esp import MqttEspDevice def guess_filename(product: str, build_target: str): @@ -34,7 +35,7 @@ def relayctl_publish_ota(filename: str, global stop stop = True - mqtt_relay = MqttRelay(devices=MQTTESPDevice(id=device_id, secret=home_secret)) + mqtt_relay = MqttRelay(devices=MqttEspDevice(id=device_id, secret=home_secret)) mqtt_relay.configure_tls() mqtt_relay.connect_and_loop(loop_forever=False) mqtt_relay.push_ota(device_id, filename, published, qos) |