There is a lot of misinformation out there in the alarmist media about this issue of "California banning natural gas appliances". There is NO STATE PLAN for this to change. The state has made a plan to ENCOURAGE changing to all electric, but making the Energy Code prefer heat pumps for heating / cooling (which are more efficient anyway) and forcing builders of NEW homes to make them "electric ready" even if they provide gas heating and water heating (which also requires being designed for solar PV and EV additions). Builders can still build new homes that have natural gas appliances, but5 must "make up for it" in other efficiency gains in the construction methods etc.
To date, 40 CITIES in California have made plans to phase out gas appliances as much as possible. The most aggressive of those is San Diego which will ban natural gas connections for NEW CONSTRUCTION starting in 2023, followed by a planned goal to CHANGE from gas to all electric in 45% of existing homes by 2030, with a GOAL of 90% conversion by 2035 (including 100% of MUNICIPAL buildings by that time). So from that I can deduce that they understand that there will always be exceptions, it's just a GOAL. But keep in mind that Sn Diego has a VERY mild climate and in general, people who use gas heating hardly ever need it. My sister lived there until this year and had gas heat, she paid about $120/year for gas. Her bigger energy use was electrical, because of the need for Air Conditioning a lot more often, so converting that to a heat pump when it wears out would be a no-brainer. That's what we are going to see happen. Most likely they will make it mandatory for A/C systems to become heat pumps, i.e. you will not be able to get a permit to replace an old A/C only unit. gas stoves are such a small amount of the gas use that I doubt anyone will pay much attention to that other than to offer financial incentives to change to electric heating, i.e. induction cooktops and convection ovens.
San Francisco is one of the other big cities that is banning gas appliance on NEW construction. But keep in mind there that "new construction" in SF is basically relegated to high density apartment structures where, because it is earthquake country, already makes gas appliances unpopular. So it's a "grand gesture" that looks good to the greenies, but in reality does not really represent a huge change. There are people who WANT to mandate retrofitting, but a study came up with a cost of up to $5.9 billion to do so. The most often discussed alternative plan is to force the change on sale of a property and/or to force it at a natural replacement cycle by not allowing replacement gas appliances to be sold or installed without a special permit. None of that is finalized though, because even that is forecasted to cost between $600 million and $2 billion stretched out across the next 28 years (the goal for SF is zero greenhouse gasses by 2050)..
The good part of all of this though; LOTS of work for the electrical trade...