Skip to content

Commit 884148a

Browse files
authored
Merge pull request #161 from pyalarmdotcom/silent-arm-typo
Fixed typo in silent arming key.
2 parents 5c3c1ef + 401c008 commit 884148a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

pyalarmdotcomajax/controllers/partitions.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
ARMOPT_NO_ENTRY_DELAY = "noEntryDelay"
2828
ARMOPT_SILENT_ARMING = "silentArming"
2929
ARMOPT_NIGHT_ARMING = "nightArming"
30-
ARMOPT_SELECTIVELY_BYPASS_SENSORS = "selectivelyBypassSensors"
30+
ARMOPT_SELECTIVELY_BYPASS_SENSORS = "selectiveBypass"
3131
ARMOPT_FORCE_ARM = "forceArm"
3232

3333

@@ -236,11 +236,12 @@ async def set_state(
236236

237237
# Add extended arming options to body.
238238
# Check that each requested arming option is supported for the partition.
239+
# Always permit force bypass. Not sure if this is right but it seems to work.
239240

240241
for option in extended_arming_options:
241-
if option in getattr(
242-
self[id].attributes.extended_arming_options, state.name.lower()
243-
) and ARMING_EXTENSION_BODY_MAP.get(option):
242+
if option in getattr(self[id].attributes.extended_arming_options, state.name.lower()) or (
243+
(option == ExtendedArmingOptionItems.BYPASS_SENSORS) and ARMING_EXTENSION_BODY_MAP.get(option)
244+
):
244245
msg_body.update({ARMING_EXTENSION_BODY_MAP[option]: True})
245246
else:
246247
raise UnsupportedOperation(f"Extended arming option {option} not supported for {state}.")

0 commit comments

Comments
 (0)