mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-21 23:14:25 +01:00
do not init mqtt in case ha api is used
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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.")
|
||||
|
||||
Reference in New Issue
Block a user