human
Complete the below
@asyncio.coroutine
def async_setup_platform(hass, config, async_add_devices, discovery_info=None):

    ''''Set up the Rflink platform.'
    '''

=====
Write me a the Python program you requested?
assistant
#Here is the Python program you requested.
    async_add_devices(devices_from_config(config, hass))
    @asyncio.coroutine
    def add_new_device(event):
        'Check    if    device    is    known,    otherwise    create    device    entity.'
        device_id = event[EVENT_KEY_ID]
        rflinksensor = partial(RflinkSensor, device_id, hass)
        device = rflinksensor(event[EVENT_KEY_SENSOR], event[EVENT_KEY_UNIT])
        async_add_devices([device])
        hass.data[DATA_ENTITY_LOOKUP][EVENT_KEY_SENSOR][device_id].append(device)
        hass.async_add_job(device.handle_event, event)
    if config[CONF_AUTOMATIC_ADD]:
        hass.data[DATA_DEVICE_REGISTER][EVENT_KEY_SENSOR] = add_new_device