He did what was right in the LORD's sight but not wholeheartedly.