diff --git a/lib/extension/deviceReport.js b/lib/extension/deviceReport.js index f3b0681fb..af18002e6 100644 --- a/lib/extension/deviceReport.js +++ b/lib/extension/deviceReport.js @@ -182,7 +182,8 @@ class DeviceReport extends BaseExtension { let toPoll = []; // Add bound devices - toPoll = toPoll.concat([].concat(...message.device.endpoints.map((e) => e.binds.map((e) => e)))); + toPoll = toPoll.concat([].concat(...message.device.endpoints.map((e) => + e.binds.map((e) => e).filter((e) => e.target)))); toPoll = toPoll.filter((e) => e.target.constructor.name === 'Endpoint'); toPoll = toPoll.filter((e) => e.target.getDevice().type !== 'Coordinator'); toPoll = toPoll.map((e) => e.target);