|
@@ -217,7 +217,7 @@ class EquipmentFamilyView(View):
|
|
|
'tb_country': country
|
|
|
}
|
|
|
UidSetModel.objects.create(**uid_set_create_dict)
|
|
|
- if device_type == 201: # 添加插座信息
|
|
|
+ if int(device_type) == 201: # 添加插座信息
|
|
|
SmartSocketView.save_socket_switch(device_id, serial_number, 0)
|
|
|
res = {
|
|
|
'deviceId': device_id,
|