A settlement has been reached just two days after district attorneys from 25 California counties filed a lawsuit against Tesla over allegations the automaker repeatedly mishandled hazardous waste at its facilities throughout the state. Tesla has agreed to pay $1.3 million in civil penalties and $200,000 to reimburse the costs of the investigation, according to a press release from the Office of the District Attorney in San Francisco. Tesla is also under a detailed injunction for five years, which requires training employees and hiring a third party to conduct annual waste audits of its trash containers at 10% of its facilities.