The man accused of setting Pennsylvania Governor Josh Shapiro’s residence on fire in April was sentenced to 25 to 50 years in state prison as part of a plea deal.

Cody Balmer, 38, pleaded guilty to attempted murder, aggravated arson, 22 counts of arson, burglary and other offenses at a court hearing on Tuesday.

While the official residence in the state capital of Harrisburg was severely damaged during the fire, people home at the time - including Shapiro, his wife, his four children, and guests and staff members - were able to escape unscathed.

Shapiro said his family was supportive of the plea agreement announced by prosecutors.

The attack against the governor and his family is part of a wave of political violence in the US, including attempted kidnapping of Michigan Governor Gretchen Whitmer, two assassination attempts against President Donald Trump, the killings of two Minnesota state officials and the killing of commentator Charlie Kirk.