You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
DeviceRef inherits from str which leads to confusion on the client #1556
When the only methods which should be available to the user are the ones we expose e.g model I think is the only one that should be available so they can check the device bluesky protocols. These extra methods come from class DeviceRef inheriting str and is rather confusing. It is done this way so that when passing the "device" to the plan, the device is treated as the device name for the server to lookup.
This was originally done to make the json serialization straightforward as it is handled by the requests library where we can't change behaviour. A possible approach to this would be to handle the json serialization on our side and pass the string to the request as data. We could then use a default handler to support DeviceRef types.
Activity
tpoliaw commentedon Jun 12, 2026
This was originally done to make the json serialization straightforward as it is handled by the requests library where we can't change behaviour. A possible approach to this would be to handle the json serialization on our side and pass the string to the request as data. We could then use a default handler to support
DeviceReftypes.