From 52a259dafd6c09d200bc1ccd2823e95a904b93de Mon Sep 17 00:00:00 2001 From: Brandon Watson Date: Tue, 4 Jan 2022 13:24:54 -0500 Subject: [PATCH] Fixing restart issue --- package-lock.json | 2 +- package.json | 2 +- src/services/activityService.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 5252635..b212f04 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@watsonb8/homebridge-harmony-control", - "version": "1.2.1", + "version": "1.2.2", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 36b0578..3f18ead 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@watsonb8/homebridge-harmony-control", - "version": "1.2.1", + "version": "1.2.2", "description": "Homebridge platform to control smart home equipment by room.", "main": "bin/index.js", "publishConfig": { diff --git a/src/services/activityService.ts b/src/services/activityService.ts index 9c06fa8..9c19c00 100644 --- a/src/services/activityService.ts +++ b/src/services/activityService.ts @@ -117,7 +117,7 @@ export class ActivityService { let currentOtherState: IActivityState = this._stateDataProvider.states[controlUnitKey]!; - if (!currentOtherState) { + if (!currentOtherState || !currentOtherState.currentActivity) { return devicesToTurnOn; }