Even then, it has to be done per provisions of law.
Most folks think this has something to do with garrisoning troops. However, it's about religious freedom. Louis XIV, an authentic tyrant, decided everybody should attend the same church as himself. Accordingly, he prohibited Protestants from attending their separate churches.
One of the ways he sought to enforce his edicts called the Dragonettes Orders was to send troops into the homes of people who would not conform. There they were allowed to eat the food, use the property, rape the women, and do all sorts of vicious acts until the owner recanted and began going to the church required by law.
Obviously during a time of war even a tyrant might well have other things on his mind, and the troops might well be defending the homeowners whom they would otherwise be abusing.
I stand corrected! My argument still holds though. Taking away your home is worse than stationing troops inside.