def METHOD_NAME(self, state=None):
    if self.chan_interlock_state is None:
        return
    if state is None:
        state = self.chan_interlock_state.getValue()
    self.interlock_set = state
    self.log.debug(
        "P11 DetectorDistance / INTERLOCK is %s"
        % (self.interlock_set and "SET" or "NOT SET")
    )