Amazon.com Inc. said a June 2018 blaze on the roof of one of its warehouses in Redlands, California, involved a solar system that Tesla’s SolarCity division installed.