SACRAMENTO — The city of Pasadena, home to the annual Rose Parade and Rose Bowl college football contest, is violating a new California law designed to increase affordable housing, the state attorney general warned Tuesday.

It’s Attorney General Rob Bonta’s second such action after proponents of denser housing said more than a dozen communities across California had been hurrying to adopt restrictions before the law took effect Jan. 1. More than 150 cities opposed the law as it was being considered in the Legislature last year.