async def async_setup_entry(hass: HomeAssistantType, config_entry: ConfigEntry, async_add_entities) -> None:
    'Set up the HomematicIP Cloud lights from a config entry.'
    hap = hass.data[HMIPC_DOMAIN][config_entry.data[HMIPC_HAPID]]
    entities = []
    for device in hap.home.devices:
        if isinstance(device, AsyncBrandSwitchMeasuring):
            entities.append(HomematicipLightMeasuring(hap, device))
        elif isinstance(device, AsyncBrandSwitchNotificationLight):
            entities.append(HomematicipLight(hap, device))
            entities.append(HomematicipNotificationLight(hap, device, device.topLightChannelIndex))
            entities.append(HomematicipNotificationLight(hap, device, device.bottomLightChannelIndex))
        elif isinstance(device, (AsyncDimmer, AsyncPluggableDimmer, AsyncBrandDimmer, AsyncFullFlushDimmer)):
            entities.append(HomematicipDimmer(hap, device))
    if entities:
        async_add_entities(entities)
Set up the HomematicIP Cloud lights from a config entry.
async def async_setup_entry(hass: HomeAssistantType, config_entry: ConfigEntry, async_add_entities) -> None:
    
    hap = hass.data[HMIPC_DOMAIN][config_entry.data[HMIPC_HAPID]]
    entities = []
    for device in hap.home.devices:
        if isinstance(device, AsyncBrandSwitchMeasuring):
            entities.append(HomematicipLightMeasuring(hap, device))
        elif isinstance(device, AsyncBrandSwitchNotificationLight):
            entities.append(HomematicipLight(hap, device))
            entities.append(HomematicipNotificationLight(hap, device, device.topLightChannelIndex))
            entities.append(HomematicipNotificationLight(hap, device, device.bottomLightChannelIndex))
        elif isinstance(device, (AsyncDimmer, AsyncPluggableDimmer, AsyncBrandDimmer, AsyncFullFlushDimmer)):
            entities.append(HomematicipDimmer(hap, device))
    if entities:
        async_add_entities(entities)