Explorar el Código

update Jiaming ATVA logic

highing666 hace 3 años
padre
commit
61270f9d96
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  1. 5 1
      app/api/routers/devices.py

+ 5 - 1
app/api/routers/devices.py

@@ -260,4 +260,8 @@ async def get_acatva_instructions_v2(
 ):
     temp_set = await build_acatva_instructions_for_JM(params)
 
-    return temp_set
+    resp = {"temperature_target_set": temp_set}
+    logger.info(params)
+    logger.info(f"{params.device_id} - {resp}")
+
+    return resp