Skip to content

Commit

Permalink
revert: display device data in debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Jin committed Nov 4, 2023
1 parent 3818248 commit 227a82a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/platform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ export class LGThinQHomebridgePlatform implements DynamicPlatformPlugin {
}

for (const device of devices) {
this.log.debug('Device ['+device.name+']: ', device.toString());
this.log.debug(JSON.stringify(device.data));

if (!this.enable_thinq1 && device.platform === PlatformType.ThinQ1) {
this.log.debug('Thinq1 device is skipped: ', device.toString());
continue;
Expand All @@ -128,7 +131,6 @@ export class LGThinQHomebridgePlatform implements DynamicPlatformPlugin {
const accessoryType = Helper.make(device);
if (accessoryType === null) {
this.log.info('Device not supported: '+ device.platform + ': ' + device.toString());
this.log.debug('Device data: ', JSON.stringify(device.data));
this.ThinQ.unregister(device).then(() => {
this.log.debug(device.id, '- unregistered!');
});
Expand Down

0 comments on commit 227a82a

Please sign in to comment.