Update panel_cmd.py

This commit is contained in:
Johannes
2023-12-03 16:25:17 +01:00
committed by GitHub
parent 108582cbfb
commit c2d281658e

View File

@@ -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}")
custom_send(msg_out_queue, topic, f"statusUpdate~{data}")