mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-08-27 05:00:06 +00:00
Correctly resolve device friendlyName when lookup via ieeAddr.
This commit is contained in:
+2
-1
@@ -26,7 +26,8 @@ function resolveEntity(ID) {
|
||||
} else {
|
||||
// By default it is a device with ID as ID.
|
||||
type = 'device';
|
||||
friendlyName = ID;
|
||||
const device = settings.getDevice(ID);
|
||||
friendlyName = device ? device.friendly_name : ID;
|
||||
}
|
||||
|
||||
return {ID: ID, type: type, friendlyName: friendlyName};
|
||||
|
||||
Reference in New Issue
Block a user