File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
pyalarmdotcomajax/controllers Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 2727ARMOPT_NO_ENTRY_DELAY = "noEntryDelay"
2828ARMOPT_SILENT_ARMING = "silentArming"
2929ARMOPT_NIGHT_ARMING = "nightArming"
30- ARMOPT_SELECTIVELY_BYPASS_SENSORS = "selectivelyBypassSensors "
30+ ARMOPT_SELECTIVELY_BYPASS_SENSORS = "selectiveBypass "
3131ARMOPT_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 } ." )
You can’t perform that action at this time.
0 commit comments