Comment by AlexandrB
The problem with heat pumps replacing electric heaters (in cold climates) is that the waste cold air gets dumped into the house and needs to be heated again. Generally, electric water heaters are expensive to run compared to gas ones, so people use them in places a gas heater is not possible to install (e.g. no way to vent the exhaust). This also means that the heat pump would have nowhere to vent cold air.
This kind of thing is why I don't like bans like this. The specifics matter a lot.