Quellcode durchsuchen

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

zhangdongming vor 2 Jahren
Ursprung
Commit
91d9573bbf
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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,