From 26abb773ba73209de27ea7be074c385e9b39c053 Mon Sep 17 00:00:00 2001 From: Brandon McFarlin Date: Thu, 26 Mar 2020 08:29:32 -0400 Subject: [PATCH] return without config --- index.js | 3 +++ package.json | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 9245b88..126f497 100755 --- a/index.js +++ b/index.js @@ -43,6 +43,9 @@ const setupConnection = async function(config, log) { class NestCamPlatform { constructor(log, config, api) { let self = this; + if (!config) { + return; + } self.log = log; self.config = config || {}; if (api) { diff --git a/package.json b/package.json index ba57fee..f3c4714 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "homebridge-nest-cam2", - "version": "1.1.9", + "version": "1.1.10", "description": "Nest cam plugin for homebridge: https://homebridge.io/", "license": "ISC", "keywords": [