Skip to content

Commit

Permalink
Revert "bugfix"
Browse files Browse the repository at this point in the history
This reverts commit 0cca40f.
  • Loading branch information
asgothian committed Dec 29, 2024
1 parent 1dbf732 commit c5998e7
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -772,12 +772,9 @@ class Zigbee extends utils.Adapter {
target = entity.mapped;
} else {
target = await this.zbController.resolveEntity(deviceId, epName);
const targetID = (target.device ? target.device.ID : '-1');
if (has_elevated_debug) this.log.warn(`ELEVATED: Resolved target: ${safeJsonStringify(target)}`);
target = target.endpoint;
const epID = (target.ID ? target.ID : '-1')
const epIEEE = (target.deviceIeeeAddress ? target.deviceIeeeAddress : '0x0')
if (has_elevated_debug)
this.log.warn(`ELEVATED: Target device ${epIEEE} (ID:${targetID}), EP ${epID}`);
if (has_elevated_debug) this.log.warn(`ELEVATED: selected endpoint of resolved Target: ${safeJsonStringify(target)}`);
}

this.log.debug(`target: ${safeJsonStringify(target)}`);
Expand Down

0 comments on commit c5998e7

Please sign in to comment.