mirror of
https://github.com/bec-project/ophyd_devices.git
synced 2026-08-10 16:10:39 +02:00
refator: fix patch_dual_pvs
This commit is contained in:
@@ -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