[DISC] Fix device name discovery (#2093)

Fix issue introduced by #1936

Co-authored-by: Florian <1technophile@users.noreply.github.com>
This commit is contained in:
FlorianandFlorian authored and GitHub committed 2024-10-25 13:24:31 -05:00
1 parent f30960566c
commit 952a65dd0f
1 file changed
+1 -1
+1 -1
View File
@@ -939,7 +939,7 @@ void launchBTDiscovery(bool overrideDiscovery) {
Log.trace(F("properties: %s" CR), properties.c_str());
std::string brand = decoder.getTheengAttribute(p->sensorModel_id, "brand");
std::string model = decoder.getTheengAttribute(p->sensorModel_id, "model");
# ifdef ForceDeviceName
# if ForceDeviceName
if (p->name[0] != '\0') {
model = p->name;
}