[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:
1 parent
921488359e
commit
f5fe3ed223
1 file changed
-5
@@ -183,11 +183,6 @@ void BTConfig_fromJson(JsonObject& BTdata, bool startup = false) {
|
|||||||
}
|
}
|
||||||
// Home Assistant presence message
|
// Home Assistant presence message
|
||||||
Config_update(BTdata, "hasspresence", BTConfig.presenceEnable);
|
Config_update(BTdata, "hasspresence", BTConfig.presenceEnable);
|
||||||
# ifdef ZmqttDiscovery
|
|
||||||
// Create discovery entities
|
|
||||||
btScanParametersDiscovery();
|
|
||||||
btPresenceParametersDiscovery();
|
|
||||||
# endif
|
|
||||||
// Time before before active scan
|
// Time before before active scan
|
||||||
// Scan interval set - and avoid intervalacts to be lower than interval
|
// Scan interval set - and avoid intervalacts to be lower than interval
|
||||||
if (BTdata.containsKey("interval") && BTdata["interval"] != 0) {
|
if (BTdata.containsKey("interval") && BTdata["interval"] != 0) {
|
||||||
|
|||||||
Reference in new issue
Block a user