Skip to content

Commit

Permalink
fix debug output on unrecognized cached accessory
Browse files Browse the repository at this point in the history
  • Loading branch information
thenewwazoo committed Feb 27, 2022
1 parent 004ff2f commit 7c1a789
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
3 changes: 2 additions & 1 deletion src/platform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 7c1a789

Please sign in to comment.