Browse Source

增加智能插座判断

zhangdongming 2 năm trước cách đây
mục cha
commit
da1becaa83
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      Controller/SensorGateway/EquipmentFamilyController.py

+ 1 - 1
Controller/SensorGateway/EquipmentFamilyController.py

@@ -773,7 +773,7 @@ class EquipmentFamilyView(View):
             'created_time': now_time
         }
 
-        category = 0 if device_type == 200 or 201 else 1
+        category = 0 if device_type == 200 or device_type == 201 else 1
         data['category'] = category
         # 查询类别排序
         family_room_device_qs = FamilyRoomDevice.objects.filter(family_id=int(family_id), category=category).values(