浏览代码

修改添加设备没有插座附属信息

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

+ 1 - 1
Controller/SensorGateway/EquipmentFamilyController.py

@@ -217,7 +217,7 @@ class EquipmentFamilyView(View):
                         'tb_country': country
                         'tb_country': country
                     }
                     }
                     UidSetModel.objects.create(**uid_set_create_dict)
                     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)
                     SmartSocketView.save_socket_switch(device_id, serial_number, 0)
                 res = {
                 res = {
                     'deviceId': device_id,
                     'deviceId': device_id,