[DISC] Remove unnecessary discovery publication (#2105)

They are not anymore needed as we keep the scan and presence parameters always displayed

Co-authored-by: Florian <1technophile@users.noreply.github.com>
This commit is contained in:
Florian
2024-11-12 08:26:29 -06:00
committed by GitHub
parent 921488359e
commit f5fe3ed223

View File

@@ -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) {