rooi / homebridge-lightwaverf

LightwaveRF plugin for HomeBridge
9 stars 7 forks source link

0.3.0 breaks manual config setup #48

Closed Cardo1 closed 3 years ago

Cardo1 commented 3 years ago

Just tried updating to 0.3.0 however the plugin fails to load as it seems to fail when loading up a manual config. This is the error:

[27/03/2021, 23:36:34] [LightWaveRF] LightWaveRF Platform Plugin Version 0.3.0 [27/03/2021, 23:36:34] [LightWaveRF] Fetching LightWaveRF switches and dimmers... (node:11935) UnhandledPromiseRejectionWarning: TypeError: this.log is not a function at new LightwaveRF (/usr/local/lib/node_modules/homebridge-lightwaverf/lib/lightwaverf.js:48:18) at getLights (/usr/local/lib/node_modules/homebridge-lightwaverf/index.js:167:25) at LightWaveRFPlatform.accessories (/usr/local/lib/node_modules/homebridge-lightwaverf/index.js:182:5) at /usr/local/lib/node_modules/homebridge/src/bridgeService.ts:529:24 at new Promise () at BridgeService.loadPlatformAccessories (/usr/local/lib/node_modules/homebridge/src/bridgeService.ts:523:12) at ChildBridgeFork.startBridge (/usr/local/lib/node_modules/homebridge/src/childBridgeFork.ts:139:36) (Use node --trace-warnings ... to show where the warning was created) (node:11935) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2) (node:11935) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

rooi commented 3 years ago

Sorry Cardo1. This should be fixed in 0.3.1, just published

Cardo1 commented 3 years ago

Working with 0.3.1.

Thanks!