From 57d1105ba830db64d0479be7837e3b3db9ee44f3 Mon Sep 17 00:00:00 2001 From: DigiH Date: Thu, 13 Jun 2024 19:25:43 +0200 Subject: [PATCH] [DISC] build flag dependant discovery of HTTP firmware update UI (#1969) --- main/ZmqttDiscovery.ino | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main/ZmqttDiscovery.ino b/main/ZmqttDiscovery.ino index 8a17a3b..b0af0c8 100644 --- a/main/ZmqttDiscovery.ino +++ b/main/ZmqttDiscovery.ino @@ -667,6 +667,7 @@ void pubMqttDiscovery() { "", "", "", "", false, // device name, device manufacturer, device model, device ID, retain stateClassNone //State Class ); +# ifdef MQTT_HTTPS_FW_UPDATE createDiscovery("update", //set Type subjectRLStoMQTT, "SYS: Firmware Update", (char*)getUniqueId("update", "").c_str(), //set state_topic,name,uniqueId will_Topic, "firmware", "", //set availability_topic,device_class,value_template, @@ -676,6 +677,8 @@ void pubMqttDiscovery() { "", "", "", "", false, // device name, device manufacturer, device model, device ID, retain stateClassNone //State Class ); +# endif + # ifdef ZsensorBME280 # define BMEparametersCount 5 Log.trace(F("bme280Discovery" CR));