Browse Source

修改查询设备返回值字段

peng 2 years ago
parent
commit
8b3cfdb23d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Controller/SensorGateway/SubDeviceController.py

+ 1 - 1
Controller/SensorGateway/SubDeviceController.py

@@ -619,7 +619,7 @@ class GatewaySubDeviceView(View):
                             'roomName': room_name,
                             'familyId': family_id
                         })
-                device_dict['sub_device'] = sub_device
+                device_dict['subDevice'] = sub_device
                 device_list.append(device_dict)
             return response.json(0, device_list)
         except Exception as e: