def METHOD_NAME(self, detector: EstopDetector) -> None:
    """Configure the estop state machine to listen to a detector.
    This function will also transition the state based on the current
    status of the detector."""
    if self._detector is not None:
        self._detector.remove_listener(self.detector_listener)
    self._detector = detector
    detector.add_listener(listener=self.detector_listener)
    self._handle_state_transition(new_summary=detector.status)