Browse Source

修复bug

peng 1 year ago
parent
commit
e40ca57f7e
1 changed files with 1 additions and 0 deletions
  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: