Merge branch 'dev' into workstation_dev_new

This commit is contained in:
Xuwznln
2025-09-04 02:51:29 +08:00

View File

@@ -215,7 +215,7 @@ class PyLabRobotCreator(DeviceClassCreator[T]):
for kk, vv in all_states.items():
if kk not in v:
v[kk] = vv
self.device_instance.deck.load_all_state(v)
self.device_instance.load_all_state(v)
self.resource_tracker.add_resource(self.device_instance)
self.post_create()
return self.device_instance # type: ignore
@@ -283,6 +283,9 @@ class WorkstationNodeCreator(DeviceClassCreator[T]):
"""
super().__init__(cls, children, resource_tracker)
def attach_resource(self):
pass # WorkstationNode不直接附加资源
def create_instance(self, data: Dict[str, Any]) -> T:
"""
从数据创建WorkstationNode设备实例