Update class.homewizard.php

Error in private function switch_on fixed