[SYS] Add save option to discovery and ohdiscovery key and remove discovery for Arduino boards (#1696)
Enabling to keep discovery off if required Remove Mqtt discovery for Arduino UNO and ATMEGA
This commit is contained in:
1 parent
7405499f15
commit
a6c0a3b1d4
10 files changed
+110
-26
No files matched your search
@@ -131,7 +131,7 @@ void RF2toMQTT() {
|
||||
RF2data["address"] = (unsigned long)rf2rd.address;
|
||||
RF2data["switchType"] = (int)rf2rd.switchType;
|
||||
# ifdef ZmqttDiscovery //component creation for HA
|
||||
if (disc)
|
||||
if (SYSConfig.discovery)
|
||||
RF2toMQTTdiscovery(RF2data);
|
||||
# endif
|
||||
|
||||
|
||||
Reference in new issue
Block a user