|
@@ -867,7 +867,7 @@ class SmartSceneView(View):
|
|
assert success
|
|
assert success
|
|
except AssertionError:
|
|
except AssertionError:
|
|
return response.json(10044)
|
|
return response.json(10044)
|
|
- time.sleep(1)
|
|
|
|
|
|
+ time.sleep(2)
|
|
|
|
|
|
# 下发智能按钮数据
|
|
# 下发智能按钮数据
|
|
smart_button_qs = GatewaySubDevice.objects.filter(device_id=device_id,
|
|
smart_button_qs = GatewaySubDevice.objects.filter(device_id=device_id,
|
|
@@ -887,7 +887,7 @@ class SmartSceneView(View):
|
|
assert success
|
|
assert success
|
|
except AssertionError:
|
|
except AssertionError:
|
|
return response.json(10044)
|
|
return response.json(10044)
|
|
- time.sleep(1)
|
|
|
|
|
|
+ time.sleep(2)
|
|
|
|
|
|
return response.json(0)
|
|
return response.json(0)
|
|
except Exception as e:
|
|
except Exception as e:
|