He was elected in 2014. He took office in January of 2015.
In 2016, the Maryland legislature passed a law that any replacement appointed by the Governor had to be the same party as the person they replaced.
just another of the veto-proof legislature's ways to hamstring a Republican governor. He's an R in name only and a Trump hater, but still an R.