From 910d44ead999b19eaf67b40c265cc89f845b9774 Mon Sep 17 00:00:00 2001 From: Florian <1technophile@users.noreply.github.com> Date: Tue, 12 Nov 2024 07:27:16 -0600 Subject: [PATCH] [DISC] Remove unnecessary discovery publication They are not anymore needed as we keep the scan and presence parameters always displayed --- main/ZgatewayBT.ino | 5 ----- 1 file changed, 5 deletions(-) diff --git a/main/ZgatewayBT.ino b/main/ZgatewayBT.ino index 64082e6dcf..55f526525f 100644 --- a/main/ZgatewayBT.ino +++ b/main/ZgatewayBT.ino @@ -183,11 +183,6 @@ void BTConfig_fromJson(JsonObject& BTdata, bool startup = false) { } // Home Assistant presence message Config_update(BTdata, "hasspresence", BTConfig.presenceEnable); -# ifdef ZmqttDiscovery - // Create discovery entities - btScanParametersDiscovery(); - btPresenceParametersDiscovery(); -# endif // Time before before active scan // Scan interval set - and avoid intervalacts to be lower than interval if (BTdata.containsKey("interval") && BTdata["interval"] != 0) {