From 0df5320ffe3bf7ea21a82cd0d9d8e3ece6308629 Mon Sep 17 00:00:00 2001 From: Donavan Becker Date: Thu, 23 May 2024 09:34:01 -0500 Subject: [PATCH] Update device.ts --- src/devices/device.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices/device.ts b/src/devices/device.ts index 72f0d70..17c2370 100644 --- a/src/devices/device.ts +++ b/src/devices/device.ts @@ -107,7 +107,7 @@ export abstract class deviceBase { async statusCode(device: device & devicesConfig, error: { message: string; }): Promise { if (!device.hide_device) { - const statusCodeString = String(error); // Convert statusCode to a string + const statusCodeString = JSON.stringify(error); // Convert statusCode to a string if (statusCodeString.includes('100')) { this.debugLog(`Lock: ${this.accessory.displayName} Command successfully sent, statusCode: ${statusCodeString}`); } else if (statusCodeString.includes('200')) {