Cal. Health & Safety Code § 25185
(a) In order to carry out the purposes of this chapter, any authorized representative of the department or the local officer or agency authorized to enforce this chapter pursuant to subdivision (a) of Section 25180, may, at any reasonable hour of the day, or as authorized pursuant to Title 13 (commencing with Section 1822.50) of Part 3 of the Code of Civil Procedure, do any of the following:
(c)
(2)