From 7c1a7892792cabc6bd3a8f7c8bd5833b5ab1a407 Mon Sep 17 00:00:00 2001 From: Brandon Matthews Date: Sat, 26 Feb 2022 17:10:17 -0800 Subject: [PATCH] fix debug output on unrecognized cached accessory --- package.json | 2 +- src/platform.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 4c8adb6..97bd50b 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "displayName": "Lutron Caseta LEAP", "name": "homebridge-lutron-caseta-leap", - "version": "2.3.0-beta4", + "version": "2.3.0-beta5", "description": "Support for the Lutron Caseta Smart Bridge 2", "license": "Apache-2.0", "repository": { diff --git a/src/platform.ts b/src/platform.ts index df6d2ea..552e8ee 100644 --- a/src/platform.ts +++ b/src/platform.ts @@ -23,6 +23,7 @@ import { BridgeManager } from './BridgeManager'; import fs from 'fs'; import v8 from 'v8'; import process from 'process'; +import * as util from 'util'; interface PlatformEvents { unsolicited: (response: Response) => void; @@ -148,7 +149,7 @@ export class LutronCasetaLeap break; } default: - this.log.warn(`Accessory ${accessory} was cached but is not supported. Did you downgrade?`); + this.log.warn(`Accessory ${util.inspect(accessory)} was cached but is not supported. Did you downgrade?`); } this.accessories.set(accessory.UUID, accessory);