#NEWLINE# def test_arm_home_no_pending( self ) : #NEWLINE# #INDENT# 'Test arm home method.' #NEWLINE# self . assertTrue ( alarm_control_panel . setup ( self . hass , { #NEWLINE# #INDENT# 'alarm_control_panel' : { #NEWLINE# #INDENT# 'platform' : 'manual' , #NEWLINE# 'name' : 'test' , #NEWLINE# 'code' : CODE , #NEWLINE# 'pending_time' : 0 , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } ) ) #NEWLINE# entity_id = 'alarm_control_panel.test' #NEWLINE# self . assertEqual ( STATE_ALARM_DISARMED , self . hass . states . get ( entity_id ) . state ) #NEWLINE# alarm_control_panel . alarm_arm_home ( entity_id . hass , CODE ) #NEWLINE# self . hass . pool . block_till_done ( ) #NEWLINE# self . assertEqual ( STATE_ALARM_ARMED_HOME , self . hass . states . get ( entity_id ) . state )