async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry):
    'Support two kind of enties - MiCloud and Gateway.'
    if ('servers' in entry.data):
        return (await _setup_micloud_entry(hass, entry))
    if entry.data:
        hass.config_entries.async_update_entry(entry, data={}, options=entry.data)
    (await _setup_logger(hass))
    if (not entry.update_listeners):
        entry.add_update_listener(async_update_options)
    hass.data[DOMAIN][entry.entry_id] = Gateway3(**entry.options)
    hass.async_create_task(_setup_domains(hass, entry))
    return True
Support two kind of enties - MiCloud and Gateway.
async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry):
    
    if ('servers' in entry.data):
        return (await _setup_micloud_entry(hass, entry))
    if entry.data:
        hass.config_entries.async_update_entry(entry, data={}, options=entry.data)
    (await _setup_logger(hass))
    if (not entry.update_listeners):
        entry.add_update_listener(async_update_options)
    hass.data[DOMAIN][entry.entry_id] = Gateway3(**entry.options)
    hass.async_create_task(_setup_domains(hass, entry))
    return True