mirror of
https://github.com/bec-project/ophyd_devices.git
synced 2026-11-30 13:08:04 +01:00
refator: fix patch_dual_pvs
This commit is contained in:
1 parent
2bae988c0b
commit
a4f3be1ad5
1 file changed
+6
-1
@@ -76,7 +76,12 @@ def patched_device(
|
||||
def patch_dual_pvs(device):
|
||||
"""Patch dual PVs"""
|
||||
patch_functions_required_for_connection(device)
|
||||
device.wait_for_connection(all_signals=True)
|
||||
try:
|
||||
device.wait_for_connection(all_signals=True)
|
||||
except TypeError:
|
||||
# Maybe no all_signals in kwargs,
|
||||
device.wait_for_connection()
|
||||
|
||||
for walk in device.walk_signals():
|
||||
if not hasattr(walk.item, "_read_pv"):
|
||||
continue
|
||||
|
||||
Reference in new issue
Block a user