mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-19 22:24:15 +01:00
Update panel_cmd.py
This commit is contained in:
@@ -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}")
|
||||
|
||||
Reference in New Issue
Block a user