No person authorized by this article to enter buildings shall enter any dwelling between the hours of 6 o'clock p.m. of any day and 8 o'clock a.m. of the succeeding day, without the consent of the owner or of the occupants of the dwelling, nor enter any dwelling in the absence of the occupants without a proper written order executed and issued by a court having jurisdiction to issue the order.
Ca. Health and Saf. Code § 17972