'Initialize the flic button.'

def __init__(self, hass, client, address, timeout, ignored_click_types):

    import pyflic
    self._hass = hass
    self._address = address
    self._timeout = timeout
    self._is_down = False
    self._ignored_click_types = (ignored_click_types or [])
    self._hass_click_types = {pyflic.ClickType.ButtonClick: CLICK_TYPE_SINGLE, pyflic.ClickType.ButtonSingleClick: CLICK_TYPE_SINGLE, pyflic.ClickType.ButtonDoubleClick: CLICK_TYPE_DOUBLE, pyflic.ClickType.ButtonHold: CLICK_TYPE_HOLD}
    self._channel = self._create_channel()
    client.add_connection_channel(self._channel)
