update:iot设备多指令适配

This commit is contained in:
CGD
2025-06-24 14:55:34 +08:00
parent bc2fc35cc9
commit 896b318c49
3 changed files with 19 additions and 1 deletions
+5 -1
View File
@@ -82,7 +82,11 @@ def create_iot_function(device_name, method_name, method_info):
response = response.replace("{value}", str(param_value))
break
return ActionResponse(Action.RESPONSE, result, response)
return ActionResponse(
Action.REQLLM,
result=f"{device_name}操作执行成功,请继续处理剩余指令",
response=response_success # 保留成功提示
)
except Exception as e:
conn.logger.bind(tag=TAG).error(
f"执行{device_name}{method_name}操作失败: {e}"