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; }