#NEWLINE# def disable_sw_switches( self ) : #NEWLINE# #INDENT# self . log . debug ( 'Disabling Diverter sw switches: %s' , switch . config [ 'activation_switches' ] ) #NEWLINE# for switch in self . config [ 'activation_switches' ] : #NEWLINE# #INDENT# self . machine . switch_controller . remove_switch_handler ( switch_name = switch . name , callback = self . activate )