The Public Service Commission announced Friday that it has reached a compromise with Charter Communications to keep its Spectrum cable television and internet operations in New York State.

According to a statement from the commission, "Charter would expand its network to provide high-speed broadband service to 145,000 residences and businesses entirely in upstate New York; the network expansion would be completed by September 30, 2021, in accordance with a schedule providing frequent interim enforceable milestone requirements; and Charter will pay $12 million to expand broadband service to additional unserved and underserved premises."

The deal reached Friday appears to have ended a contentious spat between one of the nation's largest cable companies and state regulators over whether Charter has lived up to its earlier agreement with the PSC to expand its service in rural areas of the state. The disagreement goes back to when Charter first struck a deal with the PSC two years ago to gain approval of its purchase of Time Warner Cable.