Need to cap a ceiling fan pull-chain switch hole
You want a hole plug something like this



These are similar to electrical knockout plugs.

If you can't find a source, you could use a brass cap on the outside and a short machine screw on the inside (with a washer if needed).



In either case, you need to be certain the capping material is not interfering with existing mechanisms or wires. Since the pull chain switch was previously in that location, room should not be a problem.

Images and links are for reference only and are not an endorsement of any product or company.