Fixing restart issue
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Brandon Watson 2022-01-04 13:24:54 -05:00
parent 128bb933bd
commit 52a259dafd
3 changed files with 3 additions and 3 deletions

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "@watsonb8/homebridge-harmony-control",
"version": "1.2.1",
"version": "1.2.2",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -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": {

View File

@ -117,7 +117,7 @@ export class ActivityService {
let currentOtherState: IActivityState =
this._stateDataProvider.states[controlUnitKey]!;
if (!currentOtherState) {
if (!currentOtherState || !currentOtherState.currentActivity) {
return devicesToTurnOn;
}