Checked with the city and found that no permits exist for any units in the building. Building inspector coming next week. Will I be able to fight off an unlawful detainer by showing the judge I was rented an illegal unit? I need to have access to the unit until the city inspector has time to see the unit and write up the violations. I am planning on taking my landlord to court to recover my rent paid. Landlord also breached my unit without notice, removed electrical outlets and left bare wires hanging. Landlord is also being sued by two other previous tenants. Building has multiple violations and fire department violations. Any attorney in Santa Clara, CA that can do this on a contingency basis?