def call_behavior_action_input_pin(self, pin_name: str):
    """Find an input pin on the action with the specified name

    :param pin_name:
    :return: Pin with specified name
    """
    pin_set = {x for x in self.inputs if x.name == pin_name}
    if len(pin_set) == 0:
        raise ValueError(f'Could not find input pin named {pin_name}')
    if len(pin_set) > 1:
        raise ValueError(f'Found more than one input pin named {pin_name}')
    return pin_set.pop()