From 14066d085909b32cc8105b74cdac720783baca94 Mon Sep 17 00:00:00 2001 From: Julia Drahozal Date: Wed, 18 Oct 2023 21:56:06 -0500 Subject: [PATCH] Fix for night arming option There appears to be a typo when changing the state of a partition where the night arming option is not passed through correctly. --- src/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/index.ts b/src/index.ts index 020d888..cabad96 100644 --- a/src/index.ts +++ b/src/index.ts @@ -665,19 +665,19 @@ class ADCPlatform implements DynamicPlatformPlugin { method = armStay; opts.noEntryDelay = this.armingModes.stay.noEntryDelay; opts.silentArming = this.armingModes.stay.silentArming; - opts.silentArming = this.armingModes.stay.nightArming; + opts.nightArming = this.armingModes.stay.nightArming; break; case hapCharacteristic.SecuritySystemTargetState.NIGHT_ARM: method = armStay; opts.noEntryDelay = this.armingModes.night.noEntryDelay; opts.silentArming = this.armingModes.night.silentArming; - opts.silentArming = this.armingModes.night.nightArming; + opts.nightArming = this.armingModes.night.nightArming; break; case hapCharacteristic.SecuritySystemTargetState.AWAY_ARM: method = armAway; opts.noEntryDelay = this.armingModes.away.noEntryDelay; opts.silentArming = this.armingModes.away.silentArming; - opts.silentArming = this.armingModes.away.nightArming; + opts.nightArming = this.armingModes.away.nightArming; break; case hapCharacteristic.SecuritySystemTargetState.DISARM: method = disarm;