EX-23.1 3 a2213101zex-23_1.htm EX-23.1
QuickLinks -- Click here to rapidly navigate through this document

Exhibit 23.1

Consent of Independent Registered Public Accounting Firm

We consent to the incorporation by reference in the following Registration Statements:

(1)
  Registration Statement (Form S-8 No. 333-38011) pertaining to the 1997 Long-Term Incentive Plan, 1997 Non-Employee Director's Stock Plan, and 1998 Employee Stock Purchase Plan of Comfort Systems USA, Inc.
(2)
  Registration Statement (Form S-8 No. 333-44354) pertaining to the 2000 Incentive Plan of Comfort Systems USA, Inc.
(3)
  Registration Statement (Form S-8 No. 333-138377) pertaining to the 2006 Equity Incentive Plan and 2006 Stock Options/SAR Plan for Non-Employee Directors of Comfort Systems USA, Inc.

of our reports dated February 28, 2013, with respect to the consolidated financial statements of Comfort Systems USA, Inc. and the effectiveness of internal control over financial reporting of Comfort Systems USA, Inc., included in this Annual Report (Form 10-K) for the year ended December 31, 2012.

/s/ Ernst & Young, LLP

Houston, Texas
February 28, 2013

QuickLinks

Exhibit 23.1

Consent of Independent Registered Public Accounting Firm