'Create a new connection channel to the button.'

def _create_channel(self):

    import pyflic
    channel = pyflic.ButtonConnectionChannel(self._address)
    channel.on_button_up_or_down = self._on_up_down
    if (set(self._ignored_click_types) == set(CLICK_TYPES)):
        return channel
    if (CLICK_TYPE_DOUBLE in self._ignored_click_types):
        channel.on_button_click_or_hold = self._on_click
    elif (CLICK_TYPE_HOLD in self._ignored_click_types):
        channel.on_button_single_or_double_click = self._on_click
    else:
        channel.on_button_single_or_double_click_or_hold = self._on_click
    return channel
