Ezra Miller is due in court Friday where the "Flash" actor is set to accept a plea deal to avoid jail time in connection with a break-in at a southern Vermont home last spring.

Miller agreed to a suspended sentence of 89 to 90 days in jail for the misdemeanor of unlawful trespass, according to a plea deal filed with the Vermont Superior Court in Bennington. Miller will also be fined $500 plus a $192 surcharge and be placed on probation for a year. Two other charges were dropped, including a felony burglary charge that could have carried a sentence of 25 years in prison.

Miller pleaded not guilty in October to stealing liquor from a neighbor’s home, one of a string of arrests and reports of erratic behavior by the actor last year that stretched from Hawaii to New England.

'THE FLASH' STAR EZRA MILLER SEEN IN COURT, PLEADS NOT GUILTY TO BURGLARY CHARGES, FACES 26 YEARS IN PRISON

Vermont State Police responded to a burglary complaint in the town of Stamford on May 1 and found that several bottles of alcohol had been taken from a residence while the homeowner was away.

Ezra Miller at the Fashion Fund event

Ezra Miller attends the 15th annual CFDA/Vogue Fashion Fund event on Nov. 5, 2018. Miller plans to plead guilty to an unlawful trespassing charge for breaking into a home and stealing bottles of liquor. (Evan Agostini/Invision/AP, File)

‘THE FLASH’ STAR EZRA MILLER SEEKS TREATMENT FOR ‘COMPLEX, MENTAL HEALTH ISSUES,’ APOLOGIZES FOR BEHAVIOR

The homeowner said he had been friends with Miller for about 18 years and bought the home a year and half ago in Stamford, where Miller also owned a home, according to the police affidavit. Miller was charged after police consulted surveillance footage and interviewed witnesses.

Miller was arrested twice last year in Hawaii, including for disorderly conduct and harassment at a karaoke bar.

CLICK HERE TO GET THE FOX NEWS APP

Miller stars in the upcoming film "The Flash," expected to be out in June 2023, after appearing in several "Justice League" films for Warner Bros. and D.C. Films.