From bae64dcee551506679115dcfd4da009e68511a3f Mon Sep 17 00:00:00 2001 From: joBr99 <29555657+joBr99@users.noreply.github.com> Date: Fri, 1 Dec 2023 23:28:58 +0100 Subject: [PATCH] do not init mqtt in case ha api is used --- nspanel-lovelace-ui/config.yaml | 2 +- nspanel-lovelace-ui/rootfs/usr/bin/mqtt-manager/main.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nspanel-lovelace-ui/config.yaml b/nspanel-lovelace-ui/config.yaml index b4b42518..4a46d4b3 100644 --- a/nspanel-lovelace-ui/config.yaml +++ b/nspanel-lovelace-ui/config.yaml @@ -1,6 +1,6 @@ # https://developers.home-assistant.io/docs/add-ons/configuration#add-on-config name: NSPanel Lovelace UI Addon -version: "4.7.63" +version: "4.7.64" slug: nspanel-lovelace-ui description: NSPanel Lovelace UI Addon services: diff --git a/nspanel-lovelace-ui/rootfs/usr/bin/mqtt-manager/main.py b/nspanel-lovelace-ui/rootfs/usr/bin/mqtt-manager/main.py index 7fb7faf7..3d340062 100644 --- a/nspanel-lovelace-ui/rootfs/usr/bin/mqtt-manager/main.py +++ b/nspanel-lovelace-ui/rootfs/usr/bin/mqtt-manager/main.py @@ -59,7 +59,7 @@ def process_output_to_panel(): def connect(): global settings, panel_out_queue - if settings["mqtt_server"]: + if settings["mqtt_server"] and not settings["use_ha_api"]: MqttManager(settings, panel_out_queue, panel_in_queues) else: logging.info("MQTT values not configured, will not connect.")