update:修复iot不更新的bug

This commit is contained in:
hrz
2025-06-16 23:16:40 +08:00
parent 4ee9a47d41
commit 231ae8dfa6
3 changed files with 6 additions and 2 deletions
+1 -2
View File
@@ -338,8 +338,7 @@ 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()
conn.func_handler.upload_functions_desc()
func_names = conn.func_handler.current_support_functions()
conn.logger.bind(tag=TAG).info(f"设备类型: {type_id}")