I didn't say it was illegal, I said he would have difficulty selling his house due to the electrical work performed by someone who isn't a licensed electrician.
It wouldn't have mattered in the seller's market of the past few years, but it will absolutely be a dealbreaker now that we're entering into a buyer's market.