Pārlūkot izejas kodu

amend response params

highing666 3 gadi atpakaļ
vecāks
revīzija
7fd314aaf4
1 mainītis faili ar 2 papildinājumiem un 4 dzēšanām
  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)