Bump decoder to 1.5.5 (#1699)
Filter the new attribute mac to avoid creating discovery sensor for it
This commit is contained in:
1 parent
5ff086a296
commit
4ff05d5ac4
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -1122,7 +1122,7 @@ void launchBTDiscovery(bool overrideDiscovery) {
|
||||
Gateway_AnnouncementMsg, will_Message, false, subjectMQTTtoBTset,
|
||||
model.c_str(), brand.c_str(), model_id.c_str(), macWOdots.c_str(), false,
|
||||
stateClassNone, "off", "on");
|
||||
} else if (strcmp(prop.key().c_str(), "device") != 0) {
|
||||
} else if (strcmp(prop.key().c_str(), "device") != 0 || strcmp(prop.key().c_str(), "mac") != 0) { // Exception on device and mac as these ones are not sensors
|
||||
createDiscovery("sensor",
|
||||
discovery_topic.c_str(), entity_name.c_str(), unique_id.c_str(),
|
||||
will_Topic, prop.value()["name"], value_template.c_str(),
|
||||
|
||||
Reference in new issue
Block a user