mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-10-22 14:01:20 +00:00
Retrieve default ep from mapping. #1662
This commit is contained in:
1 parent
362b910e48
commit
5a132ad34b
3 files changed
+63
No files matched your search
@@ -68,6 +68,9 @@ function getEndpointByEntityID(zigbee, entityID, epName) {
|
||||
logger.error(`Device ${mappedDevice.model} doesn't have ep named '${epName}'`);
|
||||
return;
|
||||
}
|
||||
} else if (mappedDevice.hasOwnProperty('ep')) {
|
||||
const eps = mappedDevice.ep(device);
|
||||
epID = eps[''] || null;
|
||||
}
|
||||
|
||||
const endpoint = zigbee.getEndpoint(entityID, epID);
|
||||
|
||||
Reference in new issue
Block a user