Browse Source

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

zhangdongming 2 years ago
parent
commit
91d9573bbf
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Controller/SensorGateway/EquipmentFamilyController.py

+ 1 - 1
Controller/SensorGateway/EquipmentFamilyController.py

@@ -217,7 +217,7 @@ class EquipmentFamilyView(View):
                         'tb_country': country
                     }
                     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)
                 res = {
                     'deviceId': device_id,