Bump decoder to 1.5.5 (#1699)

Filter the new attribute mac to avoid creating discovery sensor for it
This commit is contained in:
Florian authored and GitHub committed 2023-06-27 08:03:46 -05:00
1 parent 5ff086a296
commit 4ff05d5ac4
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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(),