diff --git a/src/platform.ts b/src/platform.ts index 860bc2d6..b47ad1ae 100644 --- a/src/platform.ts +++ b/src/platform.ts @@ -2616,21 +2616,23 @@ export class SwitchBotPlatform implements DynamicPlatformPlugin { this.debugLog(`Retry attempt ${retryCount} of ${maxRetries}`) await sleep(delayBetweenRetries) } - return { response: { - deviceId: '', - deviceType: '', - hubDeviceId: '', - version: 0, - deviceName: '', - enableCloudService: false, - }, statusCode: 500 } + return { + response: { + deviceId: '', + deviceType: '', + hubDeviceId: '', + version: 0, + deviceName: '', + enableCloudService: false, + }, statusCode: 500 + } } // BLE Connection async connectBLE(accessory: PlatformAccessory, device: device & devicesConfig): Promise { try { queueScheduler.schedule(async () => this.switchBotBLE) - this.debugLog(`${device.deviceType}: ${accessory.displayName} 'node-switchbot' found: ${JSON.stringify(this.switchBotBLE)}`) + this.debugLog(`${device.deviceType}: ${accessory.displayName} 'node-switchbot' found: ${JSON.stringify(this.switchBotBLE, null, ' ')}`) return this.switchBotBLE } catch (e: any) { this.errorLog(`${device.deviceType}: ${accessory.displayName} 'node-switchbot' not found, Error: ${e.message ?? e}`)