The U.S. Department of State’s website states:
“The electors voted unanimously on only two occasions, both for George Washington, for the terms beginning in 1789 and 1793."
“In the Presidential election of 1820, all the electors except one voted to reelect James Monroe.”