In summary The fact that traditionally conservative Huntington Beach now has two new Democratic legislators might enable a deal that would end the state’s lawsuit to force the more housing development there.

Assemblywoman Cottie Petrie-Norris had a rough weekend.

The freshman Democrat from Orange County, who represents part of Huntington Beach, has been working since last week to neutralize a state lawsuit against the seaside city, threatened by Gov. Gavin Newsom under a new state anti-NIMBY law.

Newsom announced the lawsuit late Friday, citing new California rules designed to punish cities that don’t allow enough housing to be built within their borders.

“I reached out to every member of the city council and the city manager and also the governor’s office,” Petrie-Norris told CALmatters before stepping into more negotiations. “My goal in all this was to reach a resolution without having to take this to the courts.”

Late today Newsom’s office encouraged such efforts, but warned any compromise would have to meet state housing law. .

“Our goal has always been for Huntington Beach to amend its housing plan to allow for more housing,” a Newsom spokesman responded in an email. “The Governor supports and encourages all efforts to help the city come into compliance with state housing law, and the state will gladly drop its lawsuit once it does so.”

Petrie-Norris and fellow Democratic Sen. Tom Umberg, whose district also includes the city, each won traditionally Republican seats by relatively narrow margins, coasting on the so-called “blue wave” that crested over Orange County. Voter registration in Huntington Beach is 40 percent Republican and 28 percent Democratic, and its local government and state legislators historically have tilted conservative.

The city has sued the Democrat-dominated state at least twice in two years: once challenging California’s “sanctuary state” law limiting local involvement in federal immigration enforcement, and again attempting to overturn another state housing law that bypasses city approval.

Having Democrats such as Petrie-Norris and Umberg represent the city could make a deal to end the lawsuit more likely, given that their legislators, governor and attorney general are all members of the same political party. But any compromise could still face opposition from those who want less local control over housing policy.

Petrie-Norris says she’s heard a mix of opinions from her constituents about Newsom’s lawsuit. But what she hears most is, “Why us?”

“There are those people that feel that Huntington Beach has been unfairly singled out while cities like Marin are in as bad a situation as Huntington Beach,” said Petrie-Norris.

The county of Marin, of course, was the longtime home of Gov. Newsom and has served as a slow-growth poster child for decades.

At the very least, Petrie-Norris said, she would have appreciated more of a heads up that the lawsuit was coming.

The governor’s announcement “was not handled in the spirit of collaboration that I hope we can manage going forward,” she said.

Note: This story has been updated to more accurately reflect voter registration in Huntington Beach.