The Home Depot Inc. will pay $8 million to settle lawsuits it sold paint, wood lacquers and other coatings that contained excessive levels of smog-forming chemicals.

The settlement, which requires approval by a California trial court, includes $1.1 million in court fees, according to the Atlanta-based retailer’s 10-K filing with the Securities and Exchange Commission.

The two suits were filed in June 2011. One complaint filed by the South Coast Air Quality Management District seeks $30 million in civil penalties. The other complaint -- lodged by Orange, Riverside and San Bernardino counties, and the City of Los Angeles -- alleged Home Depot (NYSE: HD) participated in unfair business practices and false advertising.

An attorney for Home Depot said in a statement in 2011 the company cooperated with air quality regulators after being notified of the code violations.