In https://github.com/bluesky/ophyd-async/pull/641 we make connect in mock mode sync rather than async, but can't complete the job because Device.connect is async so child connects must also be async. This PR make connect return an optional Task which means we can make the mock path fully sync.
In https://github.com/bluesky/ophyd-async/pull/641 we make connect in mock mode sync rather than async, but can't complete the job because
Device.connect
is async so child connects must also be async. This PR makeconnect
return an optionalTask
which means we can make the mock path fully sync.Too magic?
Also, tests need fixing...