|
@@ -255,7 +255,8 @@ class GatewayDeviceView(View):
|
|
|
'ieeeAddr': gateway_sub_qs['ieee_addr'],
|
|
|
'familyId': family_id,
|
|
|
})
|
|
|
- return response.json(0, {'gateway': gateway, 'sub_device': sub_device})
|
|
|
+ res = {'gateway': gateway, 'sub_device': sub_device, 'sub_device_count': len(sub_device), 'scene_count': 0}
|
|
|
+ return response.json(0, res)
|
|
|
|
|
|
except Exception as e:
|
|
|
print(e.args)
|