My vote here is to say it this way: "If I had known he wasn't coming to the lesson I could have gone home early," or "If I had known he wasn't coming to the lesson I would have gone home early."
Linda