Lear reported record sales and a modest gain in second-quarter net income as the company brings more automation technology in-house and adjusts to rapidly changing EV strategies.