Skip to content

Commit

Permalink
Update device.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
donavanbecker committed May 23, 2024
1 parent 4fd8f06 commit 0df5320
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/devices/device.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export abstract class deviceBase {

async statusCode(device: device & devicesConfig, error: { message: string; }): Promise<void> {
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')) {
Expand Down

0 comments on commit 0df5320

Please sign in to comment.