Skip to content

Commit

Permalink
Merge pull request #8 from spc-group/ophyd-async
Browse files Browse the repository at this point in the history
Passing an ophyd-async device to find() or findall() now returns the …
  • Loading branch information
canismarko authored Aug 31, 2024
2 parents 9e4f462 + 0527fac commit e428eee
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "ophyd-registry"
version = "1.3.1"
version = "1.3.2"
authors = [
{ name="Mark Wolfman", email="[email protected]" },
]
Expand Down
7 changes: 6 additions & 1 deletion src/ophydregistry/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@
except ImportError:
_AggregateSignalState = ophydobj.OphydObject

try:
from ophyd_async.core import Device as AsyncDevice
except ImportError:
AsyncDevice = ophydobj.OphydObject

from .exceptions import (
ComponentNotFound,
InvalidComponentLabel,
Expand Down Expand Up @@ -121,7 +126,7 @@ class Registry:
use_typhos: bool
keep_references: bool
_auto_register: bool
_valid_classes: Tuple[type] = (ophydobj.OphydObject, _AggregateSignalState)
_valid_classes: Tuple[type] = (ophydobj.OphydObject, _AggregateSignalState, AsyncDevice)

# components: Sequence
_objects_by_name: Mapping
Expand Down

0 comments on commit e428eee

Please sign in to comment.