An illegal gas fitter and the company that hired him have both been prosecuted after work was left in a dangerous condition at a home in Torquay.