Local Guide · Residential property management companies
When Should a Tenant Call Code Enforcement About a Rental in Texas or Florida?
A code inspection can document a dangerous condition, unlock some Texas repair remedies, and support a Florida repair notice. When to call, what an official's written notice does, and the retaliation protections for tenants who complain.
Call your city or county code enforcement or health office when a condition may violate a building, housing, health or fire code and the landlord has not fixed it after notice. In Texas, a written notice from a local housing, building or health official that a condition materially affects health or safety is one route to the repair-and-deduct remedy, and good-faith code complaints are protected from retaliation for six months. In Florida, landlords must comply with applicable codes, and complaints to code agencies are protected conduct under the retaliation statute.
Key facts
- Florida requires landlords to comply with the requirements of applicable building, housing and health codes at all times during the tenancy.
- Texas repair-and-deduct can apply after a local housing, building or health official notifies the landlord in writing of a health or safety condition.
- A Texas tenant using an official's notice for heating or cooling problems needs the official's written notice to the landlord.
- Texas protects a tenant who complains to a building or housing code agency in good faith from listed retaliation for six months.
- Florida lists a tenant's complaint to a code enforcement agency about a suspected violation as protected from retaliation.
- Texas requires landlords to disclose owner and manager information to a government official within seven days after a written request.
- In Texas, a managing or leasing agent is the landlord's agent for government notices about health, safety and nuisance violations.
- In Texas, sewage backups, flooding from broken pipes and a total loss of promised water do not need an official's notice for repair and deduct.
- Florida's withholding defense requires a 7-day written notice to the landlord before rent is withheld for a code-related repair.
When does it make sense to call code enforcement?
When a condition may break a building, housing, health or fire code, and the landlord has not fixed it after you gave notice. Common examples are no hot water, sewage backups, exposed wiring, broken locks on exterior doors, pest infestations, and roof or ceiling leaks.
The Texas State Law Library explains why codes matter: "If the problem violates a provision of your city's building, health, or fire code, then it is more likely to be considered a health or safety risk." Its repair FAQ lists conditions that might be covered, such as "a roach, mice, or rat infestation," "plumbing leaks," "mold," and "problems with the electrical wiring."
Florida section 83.51 makes code compliance part of the landlord's basic duty: "The landlord at all times during the tenancy shall: (a) Comply with the requirements of applicable building, housing, and health codes." The Florida Bar adds that the landlord "also must comply with local health, building and safety codes."
A sensible order of steps:
- Give the landlord written notice of the problem, as your state's repair rules require.
- Allow a reasonable time for repair, unless the problem is an emergency.
- If it is not fixed, or the landlord disputes that it matters, call code enforcement or the health department.
- Keep a copy of any inspection report or notice the official issues.
For immediate dangers such as gas leaks, fire or sparking wiring, call emergency services first.
What does an official's notice do in Texas?
It can open the repair-and-deduct remedy for conditions that would not otherwise qualify, and it is strong evidence that a condition materially affects health or safety.
Section 92.0561 of chapter 92 of the Texas Property Code limits repair and deduct to listed situations. Two depend on an official's notice:
- Heating or cooling: the landlord agreed to furnish the equipment, it "is producing inadequate heat or cooled air," and "the landlord has been notified in writing by the appropriate local housing, building, or health official or other official having jurisdiction that the lack of heat or cooling materially affects the health or safety of an ordinary tenant."
- Any other condition: "The landlord has been notified in writing by the appropriate local housing, building, or health official or other official having jurisdiction that the condition materially affects the health or safety of an ordinary tenant."
The State Law Library summarizes: "In these cases, the tenant must have the local building or health inspector notify the landlord."
Sewage backups, flooding from broken pipes or natural drainage, and a total loss of potable water the landlord agreed to provide do not need an official's notice under the statute.
Repair and deduct still has other requirements: the tenant must be current on rent, give the required notices, state the intent to repair, and stay within the deduction cap. Our page on Texas repairs and repair and deduct walks through each one.
Is a tenant protected from retaliation for calling code enforcement?
Yes, in both states, if the complaint is made in good faith. Texas sets a six-month protection window; Florida treats such complaints as protected conduct in its retaliation statute.
Texas section 92.331 bars retaliation because a tenant "complains to a governmental entity responsible for enforcing building or housing codes, a public utility, or a civic or nonprofit agency," and the tenant "(A) claims a building or housing code violation or utility problem; and (B) believes in good faith that the complaint is valid and that the violation or problem occurred." For six months after the complaint, the landlord may not retaliate by filing an eviction (except on listed grounds), depriving the tenant of use of the premises, decreasing services, "increasing the tenant's rent or terminating the tenant's lease," or engaging in bad-faith interference.
Florida section 83.64 lists, among protected conduct: "The tenant has complained to a governmental agency charged with responsibility for enforcement of a building, housing, or health code of a suspected violation applicable to the premises." The tenant "must have acted in good faith." Evidence of retaliation can be raised as a defense to an eviction.
Both states have exceptions, such as unpaid rent or other good cause for an eviction. Our page on landlord retaliation covers the remedies and limits. Whether an action was retaliatory is for a court to decide.
Keep a record of the date you called, the case number, and the inspector's name, in case timing becomes important later.
How does a code complaint fit with Florida's repair and withholding rules?
It supports, but does not replace, the written 7-day notice to the landlord. A Florida tenant who wants to withhold rent or end the lease over a code-related condition must still give that notice.
Section 83.60(1)(b) lets a tenant raise the landlord's "material noncompliance with s. 83.51(1)" as a defense in an action for possession, but only if "7 days have elapsed after the delivery of written notice by the tenant to the landlord, specifying the noncompliance and indicating the intention of the tenant not to pay rent by reason thereof." The notice may go to "the landlord, the landlord's representative as designated pursuant to s. 83.50, a resident manager, or the person or entity who collects the rent on behalf of the landlord."
Section 83.56(1) lets a tenant terminate the lease if the landlord materially fails to comply with section 83.51(1) "within 7 days after delivery of written notice by the tenant specifying the noncompliance and indicating the intention of the tenant to terminate the rental agreement."
A code inspection report helps show that the condition is a real code problem. It does not substitute for the written notice to the landlord.
Withholding rent carries risk. In an eviction, a Florida tenant must generally pay rent into the court registry to raise defenses. Our page on Florida repairs and rent withholding explains the registry rule. Ask legal aid before withholding.
What should you tell the code inspector?
The address and unit, what the problem is, how long it has lasted, what you told the landlord and when, and any risks to children, older adults or people with disabilities in the home.
Bring or have ready:
- dated photos and videos of the condition;
- copies of your written repair requests;
- the landlord's or manager's name and address;
- any responses from the landlord.
Texas helps officials find the responsible party. Section 92.201 requires a landlord to disclose owner and management information to "any government official or employee acting in an official capacity," within seven days after a written request. Section 92.207 makes a managing or leasing agent "the agent of the landlord" for "notice and other communications from a governmental body relating to a violation of health, sanitation, safety, or nuisance laws," including "demands for abatement of nuisances," "repair of a substandard dwelling," and "fines."
Ask the inspector:
- Will you send the landlord a written notice?
- Can I get a copy of the report or notice?
- What deadline will the landlord have?
- Will there be a follow-up inspection?
In Texas, that written notice is the document the repair-and-deduct statute refers to for heating, cooling and other official-notice conditions. Keep your copy with your lease.
What happens after the inspection?
Usually the agency gives the landlord a deadline to correct the violation and reinspects. Fines or other enforcement follow if the landlord does not act. The tenant's own remedies continue in parallel.
Agency procedures differ by city and county, so ask the office that inspected for its process and timeline. Meanwhile:
- Texas tenants: if the official notified the landlord in writing, and the other repair-and-deduct conditions are met, the remedy may become available. The landlord may delay repairs only through the affidavit process in section 92.0562 for listed causes such as parts delays or post-disaster shortages.
- Florida tenants: the 7-day written notice process under sections 83.56 and 83.60 still governs termination and withholding.
- Both: keep paying rent unless you are following a statutory process exactly, and keep records of every contact.
If the condition makes the home unsafe to live in, ask the agency whether it will order the unit vacated, and ask legal aid about your rights to end the lease or recover costs. Texas also lets a tenant terminate in some repair cases; see our page on breaking a lease early.
For mold, see our page on mold in rentals, which explains what agencies can and cannot order.
If the violation is fixed, ask the agency to close the case and note the date. If it is not, ask the agency what happens next and whether you should file a new report. Keep each letter or e-mail from the agency with your lease and repair requests, so the whole history is in one place if you need it in court or in a deposit dispute.
Which problems are usually code issues, and which are lease issues?
Conditions that affect health or safety, such as plumbing, wiring, structure, sanitation, pests and fire safety, are the usual subjects of housing and building codes. Cosmetic issues, amenities and neighbor disputes are usually lease or management issues instead.
| Problem | Usually a code issue? | First step |
|---|---|---|
| No hot water or no running water | Often | Written notice to landlord; call code if not fixed |
| Sewage backup or leaking pipes | Often | Written notice; emergency call if severe |
| Exposed wiring, sparking outlets | Often | Emergency services if dangerous; written notice |
| Roach, mouse or rat infestation | Often | Written notice; code or health office if not fixed |
| Broken exterior door locks | Often, and separate state lock rules apply | Written notice |
| Faded paint, worn carpet | Usually not | Ask the landlord; check the lease |
| Pool or gym closed | Usually not, unless unsafe | Check the lease |
| Noisy neighbors | Usually a lease or police matter | Report to management |
This table reflects common categories; your city's codes decide what is a violation. In Texas, the repair duty in section 92.052 covers conditions that materially affect "the physical health or safety of an ordinary tenant" or a hot water device that cannot supply "a minimum temperature of 120 degrees Fahrenheit." In Florida, section 83.51 adds, for most apartments, duties such as "The extermination of rats, mice, roaches, ants, wood-destroying organisms, and bedbugs" and "Functioning facilities for heat during winter, running water, and hot water," unless otherwise agreed in writing.
For pests, our pest control guide covers Texas landlord-tenant pest rules and Florida landlord-tenant pest rules. For locks, see locks and smoke alarms.
Can code enforcement come into your unit?
Ask the code office how it schedules inspections of occupied homes. When a tenant asks for an inspection, the tenant usually arranges the visit and lets the inspector in. The landlord's own entry rights for the repairs that follow are a separate question, covered below.
Practical steps for the visit:
- Agree on a time and be present if you can.
- Show the inspector each problem and your photos.
- Ask what the inspector will check and what will be in the report.
- Tell the inspector whether children, older adults or people with disabilities live in the unit.
The landlord will likely need to enter afterward to make repairs. Florida section 83.53 says "The tenant shall not unreasonably withhold consent to the landlord to enter the dwelling unit from time to time in order to inspect the premises; make necessary or agreed repairs." For repairs, the landlord gives "notice given at least 24 hours prior to the entry," between 7:30 a.m. and 8:00 p.m. Texas has no entry statute; the lease controls. Our page on landlord entry rules explains both states.
Cooperating with repair visits after a code complaint helps the problem get fixed and keeps the record clear. If a scheduled visit does not happen, tell the landlord in writing and note the date, so delays are not blamed on you.
What should owners and managers do when code enforcement calls?
Respond quickly, fix the violation, document the repair, and avoid any action that could look like retaliation against the tenant who complained.
- Route the notice. In Texas, the managing agent receives government notices for the landlord under section 92.207. Forward them to the owner the same day.
- Answer information requests. Texas requires owner and manager information to officials within seven days after a written request.
- Schedule the repair. Use licensed trades where required, and coordinate entry with the tenant under the lease or, in Florida, section 83.53.
- Document. Keep invoices, photos and the reinspection result.
- Check the calendar. In Texas, avoid rent increases, non-renewals or other listed actions within six months of a good-faith complaint unless a statutory exception clearly applies.
- Communicate. Tell the tenant in writing when work is scheduled and finished.
Our page on hiring a property manager covers repair spending authority, which matters when code deadlines are short.
How to choose a provider
- Give the landlord written notice of the problem before calling, unless it is an emergency.
- Photograph and video the condition with dates.
- Call the city or county code enforcement, housing or health office if the condition is not fixed.
- Ask the inspector to notify the landlord in writing and to give you a copy.
- Write down the case number, inspector's name and date of the inspection.
- In Texas, check whether the official's notice opens the repair-and-deduct remedy for your condition.
- In Florida, send the 7-day written notice before withholding rent or ending the lease.
- Let repair crews in after the inspection, with the notice your lease or state law requires.
- Keep paying rent unless you are following a statutory remedy exactly.
- Save records in case timing matters for a retaliation claim later.
Related residential property management companies guides
- What Repairs Must a Texas Landlord Make, and How Does Repair and Deduct Work?
- What Must a Florida Landlord Repair, and When Can a Tenant Withhold Rent?
- What Counts as Landlord Retaliation in Texas and Florida?
- Who Has to Fix Mold in a Texas or Florida Rental?
- What Can a Tenant Do About Noisy Neighbors in a Managed Building?
Residential property management companies by state and city
Questions people ask
Can my landlord evict me for calling code enforcement?
Both states protect good-faith complaints to code agencies from retaliation. Texas bars listed retaliatory actions for six months after the complaint, with exceptions such as unpaid rent. Florida allows retaliation to be raised as a defense in an eviction.
Do I have to tell my landlord before calling the city?
The statutes do not require landlord notice before a code complaint, but your repair remedies do require notice to the landlord. Giving written notice first protects your rights under both processes.
Will a code inspector's report let me deduct repairs from rent in Texas?
For heating or cooling problems and other conditions not listed in the statute, Texas repair and deduct requires that a local housing, building or health official notify the landlord in writing. Other conditions and notice requirements still apply.
Does Florida require landlords to fix code violations?
Yes. Section 83.51 requires landlords to comply with the requirements of applicable building, housing and health codes at all times during the tenancy. Tenants use the 7-day notice process to enforce that duty.
Can the city give my landlord's information to the inspector?
In Texas, landlords must disclose owner and management information to a government official acting in an official capacity within seven days after a written request. Officials can also use county property records.
Who receives the city's notice if my building has a manager?
In Texas, a managing or leasing agent, on-site or off-site, is the landlord's agent for notices from a governmental body. That covers health, sanitation, safety or nuisance violations, including fines and service of process.
How long does code enforcement give a landlord to fix a violation?
Deadlines vary by city, county and the type of violation, and the statutes reviewed here do not set them. Ask the inspector what deadline the landlord was given and when the reinspection is scheduled, and write it down.
Can I call code enforcement about a common area, like a broken stairwell light?
Yes. Codes often cover common areas, and Florida requires most apartment landlords to make reasonable provision for the clean and safe condition of common areas unless otherwise agreed in writing. Report it to management in writing too.
Should I stop paying rent until the violation is fixed?
Not without following a statutory process exactly. Florida requires a 7-day written notice before withholding, and Texas repair remedies have their own steps. Ask legal aid before withholding any rent.
Sources
- Texas Property Code chapter 92, Residential Tenancies
- Texas State Law Library, Landlord/Tenant Law guide: Requesting Repairs
- Texas State Law Library, Landlord/Tenant Law guide: Remedies for Failure to Repair
- 2026 Florida Statutes section 83.51, Landlord's obligation to maintain premises
- 2026 Florida Statutes section 83.64, Retaliatory conduct
- 2026 Florida Statutes section 83.60, Defenses to action for rent or possession; procedure
- 2026 Florida Statutes section 83.56, Termination of rental agreement
- The Florida Bar, Consumer Pamphlet: Rights and Duties of Tenants and Landlords
- Texas State Law Library, Does my landlord have to make repairs?
- 2026 Florida Statutes section 83.53, Landlord's access to dwelling unit
This guide was written by our editorial team from the public sources listed above. It is general information, not legal advice; confirm licensing and terms directly with any provider.


