Skip to content

Commit

Permalink
Update main.js
Browse files Browse the repository at this point in the history
Test: convertGet Changes ?
  • Loading branch information
asgothian committed Jan 10, 2025
1 parent 9adebc5 commit c6c1949
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -694,8 +694,12 @@ class Zigbee extends utils.Adapter {
try {
await converter.convertGet(entity.device.endpoints[0], ckey, {});
} catch (error) {
this.log.warn(`Failed to read state '${JSON.stringify(ckey)}'of '${entity.device.ieeeAddr}' after query with '${JSON.stringify(error)}'`);

this.log.warn(`Failed to read state (1)'${JSON.stringify(ckey)}'of '${entity.device.ieeeAddr}/${entity.device.endpoints[0].ID} ' after query with '${error && error.message ? error.message : 'no error message'}`);
}
try {
await converter.convertGet(entity.device, ckey, {});
} catch (error) {
this.log.warn(`Failed to read state (2)'${JSON.stringify(ckey)}'of '${entity.device.ieeeAddr}' after query with '${error && error.message ? error.message : 'no error message'}`);
}
}
}
Expand Down

0 comments on commit c6c1949

Please sign in to comment.