Skip to content

Commit

Permalink
Fix naming of PVI/Tango devices
Browse files Browse the repository at this point in the history
  • Loading branch information
coretl committed Oct 22, 2024
1 parent be6d103 commit d9eb60c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ophyd_async/epics/pvi/_pvi.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,6 @@ async def connect(
f"{device.name}: cannot provision {unfilled} from "
f"{self.pvi_pv}: {entries}"
)
# Set the name of the device to name all children
device.set_name(device.name)
return await super().connect(device, mock, timeout, force_reconnect)
2 changes: 2 additions & 0 deletions src/ophyd_async/tango/base_devices/_base_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,4 +150,6 @@ async def connect(
f"{device.name}: cannot provision {unfilled} from "
f"{self.trl}: {children}"
)
# Set the name of the device to name all children
device.set_name(device.name)
return await super().connect(device, mock, timeout, force_reconnect)

0 comments on commit d9eb60c

Please sign in to comment.