Skip to content

Commit

Permalink
fix: Add logging for interview nurikk/zigbee2mqtt-frontend#2027
Browse files Browse the repository at this point in the history
  • Loading branch information
Koenkk committed Jun 1, 2024
1 parent 137087d commit 6924db7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/extension/bridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -507,9 +507,11 @@ export default class Bridge extends Extension {
}

const device = this.getEntity('device', message.id) as Device;
logger.info(`Interviewing '${device.name}'`);

try {
await device.zh.interview();
logger.info(`Successfully interviewed '${device.name}'`);
} catch (error) {
throw new Error(`interview of '${device.name}' (${device.ieeeAddr}) failed: ${error}`, {cause: error});
}
Expand Down

0 comments on commit 6924db7

Please sign in to comment.