diff --git a/package-lock.json b/package-lock.json index aff385d..9336482 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "homebridge-blaq", - "version": "0.2.18", + "version": "0.2.19", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "homebridge-blaq", - "version": "0.2.18", + "version": "0.2.19", "funding": [ { "type": "github", diff --git a/package.json b/package.json index f4429ea..66e07dc 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "private": false, "displayName": "Konnected BlaQ", "name": "homebridge-blaq", - "version": "0.2.18", + "version": "0.2.19", "description": "Control and view your garage door(s) remotely with real-time updates using Konnected's BlaQ hardware", "license": "Apache-2.0", "type": "module", diff --git a/src/hub.ts b/src/hub.ts index 4330ce0..ad24588 100644 --- a/src/hub.ts +++ b/src/hub.ts @@ -90,7 +90,7 @@ export class BlaQHub { } private possiblyFinalizeInit(){ - if(this.friendlyName && this.deviceMac){ + if(!this.initialized && this.friendlyName && this.deviceMac){ this.logger.info('[init] Publishing accessories with device model:', this.friendlyName); this.initAccessories({ friendlyName: this.friendlyName, @@ -98,6 +98,7 @@ export class BlaQHub { }); this.logger.debug('[init] Accessories initialized!'); this.initialized = true; + this.reinitializeEventSource(); } }