mirror of
https://github.com/dptech-corp/Uni-Lab-OS.git
synced 2025-12-17 21:11:12 +00:00
修复工站的tracker实例追踪失效问题
This commit is contained in:
@@ -216,7 +216,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
|
||||
@@ -284,6 +284,9 @@ class ProtocolNodeCreator(DeviceClassCreator[T]):
|
||||
"""
|
||||
super().__init__(cls, children, resource_tracker)
|
||||
|
||||
def attach_resource(self):
|
||||
pass # WorkstationNode不直接附加资源
|
||||
|
||||
def create_instance(self, data: Dict[str, Any]) -> T:
|
||||
"""
|
||||
从数据创建ProtocolNode设备实例
|
||||
|
||||
Reference in New Issue
Block a user