bug, while device_data is a dict, process error.