mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
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:
parent
8a9a5775f4
commit
fa5669cfca
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user