There is no federal law that requires electors to vote as they have pledged, but 29 states and the District of Columbia have legal control over how their electors vote in the Electoral College...
Being that Trumpeteers aren't known for not being very tolerant (the electors won't change their vote, they want to live).