Section 1942
...have the duty to maintain leased premises in habitable condition and that tenants have the right, after notice to the landlord, to repair dilapidations and deduct the cost of the repairs from the rent. The policy expressed in these sections...