From 4ee9a47d419183342cbfd812bce95335bf77409b Mon Sep 17 00:00:00 2001 From: CGD <3030332422@qq.com> Date: Mon, 16 Jun 2025 18:09:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8D=E2=80=9C=E8=AE=BE?= =?UTF-8?q?=E5=A4=87=E4=BD=BF=E7=94=A8iot=E5=8D=8F=E8=AE=AE=EF=BC=8C?= =?UTF-8?q?=E6=84=8F=E5=9B=BE=E8=AF=86=E5=88=AB=E6=97=A0=E6=B3=95=E6=AD=A3?= =?UTF-8?q?=E7=A1=AE=E8=B0=83=E7=94=A8=E2=80=9D=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main/xiaozhi-server/core/handle/iotHandle.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main/xiaozhi-server/core/handle/iotHandle.py b/main/xiaozhi-server/core/handle/iotHandle.py index 307922c3..27d751a4 100644 --- a/main/xiaozhi-server/core/handle/iotHandle.py +++ b/main/xiaozhi-server/core/handle/iotHandle.py @@ -338,6 +338,9 @@ async def handleIotDescriptors(conn, descriptors): # 如果注册了新函数,更新function描述列表 if functions_changed and hasattr(conn, "func_handler"): + + conn.func_handler.functions_desc = conn.func_handler.function_registry.get_all_function_desc() + func_names = conn.func_handler.current_support_functions() conn.logger.bind(tag=TAG).info(f"设备类型: {type_id}") conn.logger.bind(tag=TAG).info(