async def async_setup_entry(hass: HomeAssistantType, config_entry, async_add_entities):
    'Set up switches.'
    (await async_add_entities_retry(hass, async_add_entities, hass.data[TPLINK_DOMAIN][CONF_SWITCH], add_entity))
    return True
Set up switches.
async def async_setup_entry(hass: HomeAssistantType, config_entry, async_add_entities):
    
    (await async_add_entities_retry(hass, async_add_entities, hass.data[TPLINK_DOMAIN][CONF_SWITCH], add_entity))
    return True