浏览代码

amend response params

highing666 3 年之前
父节点
当前提交
7fd314aaf4
共有 1 个文件被更改,包括 2 次插入4 次删除
  1. 2 4
      app/api/routers/devices.py

+ 2 - 4
app/api/routers/devices.py

@@ -122,13 +122,11 @@ async def get_acatfc_early_start_time(
     }
     }
 
 
 
 
-@router.post('/instructions/acatvi', response_model=domain_devices.ACATVIInstructionsTemporaryResponse)
+@router.post('/instructions/acatvi', response_model=domain_devices.ACATVIInstructionsResponse)
 async def get_acatvi_instructions(params: domain_devices.ACATVIInstructionsRequest):
 async def get_acatvi_instructions(params: domain_devices.ACATVIInstructionsRequest):
     instructions = await build_acatvi_instructions(params)
     instructions = await build_acatvi_instructions(params)
 
 
-    return {
-        'output': instructions
-    }
+    return instructions
 
 
 
 
 @router.post('/instructions/acatfc', response_model=domain_devices.ACATFCInstructionsResponse)
 @router.post('/instructions/acatfc', response_model=domain_devices.ACATFCInstructionsResponse)