Diabetes has been associated with increased COVID-19-related mortality, but the association between modifiable risk factors, including hyperglycaemia and obesity, and COVID-19-related mortality among people with diabetes is unclear.