Walmart is suing Elon Musk's electric vehicle and clean energy company after Tesla solar panels atop seven of the retailer's stores allegedly caught fire, according a court filing.

The Walmart suit alleges breach of contract, gross negligence and failure to live up to industry standards. Walmart is asking Tesla to remove solar panels from more than 240 Walmart locations where they have been installed, and to pay damages related to all the fires Walmart says that Tesla caused.

The Walmart suit, filed in the state of New York, alleges that: "As of November 2018, no fewer than seven Walmart stores had experienced fires due to Tesla's solar systems - including the four fires described above and three others that had occurred earlier." The filing details evacuations, damaged property and inventory.

Tesla's stock dropped more than 1% after hours on the news.

Walmart claimed, among myriad complaints, that "Tesla routinely deployed individuals to inspect the solar systems who lacked basic solar training and knowledge." In the suit, they also alleged that Tesla failed to ground its solar and electrical systems properly, and that Tesla-installed solar panels on-site at Walmart stores contained a high number of defects that were visible to the naked eye, and which Tesla should have found and repaired before they led to fires.

Tesla has been trying to revive its solar business of late.

On Sunday, CEO Elon Musk announced in a string of tweets that customers in some states can now rent Tesla's residential, solar rooftop systems without a contract. The offer is available in six states, and will cost customers at least $50 a month (or $65 a month in California).

Although Musk touted the ease of cancelling a rented roof at anytime, the fine print on Tesla's website mentions a $1,500 fee to take out the solar panels and restore the customer's roof.

In the second quarter of 2019, Tesla installed a mere 29 megawatts of solar, a record low for the company in a single quarter. In its heyday, Tesla's solar division (formerly SolarCity) installed over 200 megawatts in a single quarter.