Skip to content

Commit

Permalink
Use mac address as a fallback name (openhab#16547)
Browse files Browse the repository at this point in the history
Signed-off-by: Holger Hees <holger.hees@gmail.com>
Signed-off-by: Patrik Gfeller <patrik.gfeller@proton.me>
  • Loading branch information
HolgerHees authored and pgfeller committed Sep 29, 2024
1 parent ae67f0f commit ba88dc9
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,9 @@ protected static String getDisplayName(Map<String, String> properties) {
if (name.isEmpty()) {
name = getString(properties.get(PROPERTY_SERVICE_NAME));
}
if (name.isEmpty()) {
name = getString(properties.get(PROPERTY_MAC_ADDRESS));
}
return name;
}

Expand Down

0 comments on commit ba88dc9

Please sign in to comment.