From c2d281658e195956b8498671cad195cb96be65fd Mon Sep 17 00:00:00 2001 From: Johannes <29555657+joBr99@users.noreply.github.com> Date: Sun, 3 Dec 2023 16:25:17 +0100 Subject: [PATCH] Update panel_cmd.py --- .../rootfs/usr/bin/mqtt-manager/libs/panel_cmd.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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}")