Cal. Pub. Util. Code § 12804
Whenever there is a surplus of water, light, heat, or power above that which is required by inhabitants or public agencies within a district, the district may sell or otherwise dispose of the surplus outside of the district to persons, firms, and public or private corporations, or public agencies outside the district.