[romoev type when generating device_cfg]
[Do a safety check on type]