Merge pull request #1125 from A0000Xz/dev

正确地按照类型获取组件信息
pull/1128/head
UnCLAS-Prommer 2025-07-23 09:12:56 +08:00 committed by GitHub
commit 506dee2990
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 3 deletions

View File

@ -119,9 +119,7 @@ class ActionPlanner:
current_available_actions_dict = self.action_manager.get_using_actions()
# 获取完整的动作信息
all_registered_actions: List[ActionInfo] = list(
component_registry.get_components_by_type(ComponentType.ACTION).values() # type: ignore
)
all_registered_actions = component_registry.get_components_by_type(ComponentType.ACTION) # type: ignore
current_available_actions = {}
for action_name in current_available_actions_dict:
if action_name in all_registered_actions: