浏览代码

修复bug

peng 1 年之前
父节点
当前提交
e40ca57f7e
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      Controller/SensorGateway/SmartSwitchController.py

+ 1 - 0
Controller/SensorGateway/SmartSwitchController.py

@@ -542,6 +542,7 @@ class SmartSwitchView(View):
                 scene_log['tasks'] = json.dumps({'timePoint': int(implement_time), 'actions': int(switch_status)})
                 scene_log['scene_id'] = 0
                 scene_log['scene_name'] = 'switchmanual'
+                scene_log['device_id'] = device_id
                 SceneLog.objects.create(**scene_log)
                 return response.json(0)
             else: