Commit 095f364
committed
fix: Check if plan parameter is subclass of Device
The previous check for whether a parameter was a bluesky device (and
would therefore go via the string-to-device lookup) was based on the
type being an instance of one of the bluesky protocols.
For a device that only extends `Device`, this check would return False
and the device could not be injected.
Including a check for the type being a subclass of Device allows all
device subclasses to be looked up.1 parent 7b10cc3 commit 095f364
1 file changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| |||
103 | 104 | | |
104 | 105 | | |
105 | 106 | | |
106 | | - | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
107 | 112 | | |
108 | 113 | | |
109 | 114 | | |
| |||
0 commit comments