Keep in mind if you have to dance with the devil, you don’t have to bring him home or allow him to rub off on you. Many times you have to work with people you don’t like or trust, but they are part of the group that you must deal with to accomplish your goal. You don’t have to be like them, only understand how to interact with them to get what you want. You leave them at the workplace or wherever you have to deal with them.
A little trick that people have said works is: put your office problems in an imaginary box outside the office when you leave office and pick them up when you are arriving into office. Do the same with the home issues as well.