From fb63f3cf52ac0f861bd41417736bb6422b480bfe Mon Sep 17 00:00:00 2001 From: watsonb8 Date: Fri, 17 Apr 2020 23:32:15 -0400 Subject: [PATCH] Fixed issue where not all lights are used for chase --- src/chase.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/chase.ts b/src/chase.ts index 833c5cd..1d81adc 100644 --- a/src/chase.ts +++ b/src/chase.ts @@ -62,7 +62,6 @@ export class Chase implements IAccessory { 'lightbulbService' ) - this.getLights(); this._lightbulbService.getCharacteristic(Characteristic.On) //@ts-ignore .on("set", this.onPowerSet) @@ -95,7 +94,7 @@ export class Chase implements IAccessory { */ private onPowerSet = async (activeState: boolean, callback: (error?: Error | null | undefined) => void) => { if (this._isActive != activeState) { - activeState ? this.chase() : this.stopAndSetOff(); + activeState ? this.chase() : this.stop(); } return callback(); }