(a) Any covenant, condition, or restriction contained in any deed, contract, mortgage, security instrument, or other instrument pertaining to a conveyance, sale or transfer of real property or interest therein which prohibits or unreasonably limits the installation or use of a solar or wind energy shall be void and unenforceable.
(b) A covenant, condition, or restriction is considered “unreasonable” for the purpose of this chapter if the covenant, condition or restriction increases the cost and expense of the solar or wind energy system to its owner or user, or it decreases its efficiency, or otherwise effectively discourages the installation or use of a solar or wind energy system.