diff --git a/nspanel-lovelace-ui/rootfs/usr/bin/mqtt-manager/libs/panel_cmd.py b/nspanel-lovelace-ui/rootfs/usr/bin/mqtt-manager/libs/panel_cmd.py index 867d6405..06a0269d 100644 --- a/nspanel-lovelace-ui/rootfs/usr/bin/mqtt-manager/libs/panel_cmd.py +++ b/nspanel-lovelace-ui/rootfs/usr/bin/mqtt-manager/libs/panel_cmd.py @@ -1,10 +1,5 @@ import logging -def init(mqtt_client_from_manager): - global mqtt_client - mqtt_client = mqtt_client_from_manager - - def custom_send(msg_out_queue, topic, msg): msg_out_queue.put((topic, msg)) logging.debug("Sent Message to NsPanel (%s): %s", topic, msg) @@ -45,4 +40,4 @@ def entityUpdateDetail2(msg_out_queue, topic, data): custom_send(msg_out_queue, topic, f"entityUpdateDetail2~{data}") def statusUpdate(msg_out_queue, topic, data): - custom_send(msg_out_queue, topic, f"statusUpdate~{data}") \ No newline at end of file + custom_send(msg_out_queue, topic, f"statusUpdate~{data}")