Use mac address as a fallback name (#16547)

Signed-off-by: Holger Hees <holger.hees@gmail.com>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
This commit is contained in:
Holger Hees 2024-03-24 16:20:24 +01:00 committed by Ciprian Pascu
parent 8a9a5775f4
commit fa5669cfca

View File

@ -564,6 +564,9 @@ public class ShellyManagerPage {
if (name.isEmpty()) {
name = getString(properties.get(PROPERTY_SERVICE_NAME));
}
if (name.isEmpty()) {
name = getString(properties.get(PROPERTY_MAC_ADDRESS));
}
return name;
}