Any officer, employee, or agent of an enforcement agency may enter and inspect any building or premises whenever necessary to secure compliance with, or prevent a violation of, any provision of this part, the building standards published in the State Building Standards Code, and other rules and regulations promulgated pursuant to the provisions of this part which the enforcement agency has the power to enforce.
Ca. Health and Saf. Code § 17970