Restitution to the tenant or recovery of the registration or filing fees due to the local agency shall be the exclusive remedies which may be imposed against an owner of a residential rental unit who is in substantial compliance with the ordinance, charter, or regulation.
"Substantial compliance," as used in this subdivision, means that the owner of a residential rental unit has made a good faith attempt to comply with the ordinance, charter, or regulation sufficient to reasonably carry out the intent and purpose of the ordinance, charter, or regulation, but is not in full compliance, and has, after receiving notice of a deficiency from the local agency, cured the defect in a timely manner, as reasonably determined by the local agency.
"Local agency," as used in this subdivision, means the public entity responsible for the implementation of the ordinance, charter, or regulation.
Ca. Civ. Code § 1947.7