That is a bit of a strawman argument as then you should also argue for stopping all industry in Germany that has a heavy use of electricity (which battery manufacturing doesn't really compared to other things like aluminium smeltering).
Germany is moving to more renewable sources of energy and Tesla also plans to put solar panels on the rooves of its buildings.