def setup_platform(hass, config, add_entities, discovery_info=None):
    'Set up the Dyson 360 Eye robot vacuum platform.'
    from libpurecoollink.dyson_360_eye import Dyson360Eye
    _LOGGER.debug('Creating new Dyson 360 Eye robot vacuum')
    if (DYSON_360_EYE_DEVICES not in hass.data):
        hass.data[DYSON_360_EYE_DEVICES] = []
    for device in [d for d in hass.data[DYSON_DEVICES] if isinstance(d, Dyson360Eye)]:
        dyson_entity = Dyson360EyeDevice(device)
        hass.data[DYSON_360_EYE_DEVICES].append(dyson_entity)
    add_entities(hass.data[DYSON_360_EYE_DEVICES])
    return True
Set up the Dyson 360 Eye robot vacuum platform.
def setup_platform(hass, config, add_entities, discovery_info=None):
    
    from libpurecoollink.dyson_360_eye import Dyson360Eye
    _LOGGER.debug('Creating new Dyson 360 Eye robot vacuum')
    if (DYSON_360_EYE_DEVICES not in hass.data):
        hass.data[DYSON_360_EYE_DEVICES] = []
    for device in [d for d in hass.data[DYSON_DEVICES] if isinstance(d, Dyson360Eye)]:
        dyson_entity = Dyson360EyeDevice(device)
        hass.data[DYSON_360_EYE_DEVICES].append(dyson_entity)
    add_entities(hass.data[DYSON_360_EYE_DEVICES])
    return True