In Texas there's a lease form that is exactly the same no matter what apartment you move to (and possibly no matter which house you rent, I'm not sure). In this form, it makes it pretty clear that the landlord can for a variety of reasons unlock your door and let police in, or just do a random inspection. Most of the time, if a landlord really hates you for a valid reason, these reasons can be made up or exaggerated.
People think the issue is whether this interferes with things like the constitution and miranda rights (or whatever else). It may or may not, but it doesn't really matter anywhere except for that little pocket of people's imaginations that play out legal scenarios based on what the law says, and what being an American citizen is "all about" based on the constitution.
In the real world, cops and landlords can and will kick in your door without warrants, lie in police reports and in court testimony, wrongfully arrest you, etc. And there isn't a damn thing you can do about it if you don't have any money. Hotels, btw, are the least safe place you can possibly be, and police can basically get those keys based on a noise complaint or a "smell of marijuana."
If someone thinks you're breaking the law and that someone happens to be anyone involved in the management of a hotel or rental property, you can pretty much expect for things to work out badly for you, regardless of what the law says.