#NEWLINE# def transform_options( self , options ) : #NEWLINE# #INDENT# '\n        Activate takes only one caption and device, get only one element\n        from the list for better readability.\n        ' #NEWLINE# if ( ( '<device_name>' in options ) and ( len ( options [ '<device_name>' ] ) > 0 ) ) : #NEWLINE# #INDENT# options [ '<device_name>' ] = self [ '<device_name>' ] [ 0 ]