The issue isn't electricity, it's the fact that German municipal heat plants run on natural gas. Replacing all of that with electrically-powered equipment (centralized or at the endpoints) takes time.
Also, heating energy consumption is among the top usages. So switching from gas would require large increase in electric generating capacity.