I have heard of Pennyroyal being used to repel flies, mosquitos, and fleas…Though I'd not dispute Mother Earth News…Love them! I've not seen that article. I'll have to look for it.
Marigolds may be a better choice for the beetles. They are said to discourage 'mexican' bean beetles, along with many other insects/pests.