浏览代码

优化子设备修改

zhangdongming 3 年之前
父节点
当前提交
6c579670f5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Controller/SensorGateway/SubDeviceController.py

+ 1 - 1
Controller/SensorGateway/SubDeviceController.py

@@ -149,7 +149,7 @@ class GatewaySubDeviceView(View):
                 return response.json(173)
             if nickName:
                 gateway_sub_qs.update(nickname=nickName)
-            elif room_id:
+            if room_id:
                 FamilyRoomDevice.objects.filter(sub_device=gateway_sub_id).update(room_id=room_id)
             return response.json(0)
         except Exception as e: