If T2 was entirely hereditary, it wouldn’t be reversible through through behavioral changes in diet and exercise.
That’s why it’s called a lifestyle disease.
I’m not in disagreement that behavior directly affects the T2 symptoms. And I’m ambivalent about the lifestyle designation. But the T2 trait is nonetheless hereditary.
All that said, there are plenty of obese individuals that don’t have diabetes.