John Stamos faced a maximum sentence of six months in county jail


John Stamos won’t face jail time for his DUI last summer.

The Grandfathered and Fuller House star’s lawyer entered a no contest plea for his driving under the influence of a drug charge at a Los Angeles courthouse Tuesday, and Stamos was sentenced to three years of probation, Ricardo Santiago, a spokesperson for the L.A. County District Attorney’s Office, tells PEOPLE.

He must also pay a $390 fine for the misdemeanor, enroll in a three-month alcohol abuse program, attend 52 Alcoholics Anonymous meetings and undergo two hours of addiction counseling, Santiago says. (The maximum sentence was six months in county jail.)

Stamos, 52, was arrested in June after the Beverly Hills Police Department pulled him over for erratic driving. He was briefly hospitalized and checked himself into rehab for a 30-day substance abuse program soon after.

“I’ve had a rough year with my mom dying, so it all came to a head, and it was a turning point,” Stamos told Details for the magazine’s October issue. “You either continue on that path – and some of it’s fun, but a lot of it’s not – or there’s this other thing, this golden opportunity sitting there with all this work and all this goodwill that you have going for you. That’s the key.”

Grandfathered airs Tuesday at 8 p.m. ET on Fox, and Fuller House premieres in 2016 on Netflix.