Browse Source

amend response params

highing666 3 years ago
parent
commit
7fd314aaf4
1 changed files with 2 additions and 4 deletions
  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):
     instructions = await build_acatvi_instructions(params)
 
-    return {
-        'output': instructions
-    }
+    return instructions
 
 
 @router.post('/instructions/acatfc', response_model=domain_devices.ACATFCInstructionsResponse)