diff --git a/docs/source/upcoming_release_notes/822-sim-kind.rst b/docs/source/upcoming_release_notes/822-sim-kind.rst new file mode 100644 index 00000000000..dd6cbe75c44 --- /dev/null +++ b/docs/source/upcoming_release_notes/822-sim-kind.rst @@ -0,0 +1,31 @@ +822 sim-kind +############ + +API Changes +----------- +- N/A + +Features +-------- +- N/A + +Device Updates +-------------- +- Make sim devices hinted by default so they show up in the + best-effort callback in bluesky. + +New Devices +----------- +- N/A + +Bugfixes +-------- +- N/A + +Maintenance +----------- +- N/A + +Contributors +------------ +- zllentz diff --git a/pcdsdevices/sim.py b/pcdsdevices/sim.py index 6ab6ba19550..8b7d523171d 100644 --- a/pcdsdevices/sim.py +++ b/pcdsdevices/sim.py @@ -3,6 +3,7 @@ from ophyd.device import Component as Cpt from ophyd.device import Device +from ophyd.ophydobj import Kind from ophyd.positioner import SoftPositioner from ophyd.signal import AttributeSignal from ophyd.sim import SynAxis @@ -36,10 +37,10 @@ class FastMotor(FltMvInterface, SoftPositioner, Device): user_readback = Cpt(AttributeSignal, 'position') - def __init__(self, *args, init_pos=0, **kwargs): + def __init__(self, *args, init_pos=0, kind=Kind.hinted, **kwargs): for kw in ignore_kwargs: kwargs.pop(kw, None) - super().__init__(init_pos=init_pos, **kwargs) + super().__init__(init_pos=init_pos, kind=kind, **kwargs) def set_current_position(self, position): self._set_position(position)