(hass, config_entry)
return startup_result
Set up this integration using UI.
Set up this integration using UI.
Set up this integration using UI .
async def async_setup_entry(hass, config_entry):
    """Set up this integration using UI."""
    conf = hass.data.get(const.DOMAIN)
    if config_entry.source == config_entries.SOURCE_IMPORT:
        if conf is None:
            hass.async_create_task(
                hass.config_entries.async_remove(config_entry.entry_id)
            )
        return False
    Hacs.hass = hass
    Hacs.configuration = Configuration(config_entry.data)
    Hacs.configuration.config_type = "flow"
    Hacs.configuration.config_entry = config_entry
    startup_result = await hacs_startup(Hacs)
    if not startup_result:
        raise ConfigEntryNotReady
    return startup_result
async def async_setup_entry ( hass , config_entry ) : conf = hass . data . get ( const . DOMAIN ) if config_entry . source == config_entries . SOURCE_IMPORT : if conf is None : hass . async_create_task ( hass . config_entries . async_remove ( config_entry . entry_id ) ) return False Hacs . hass = hass Hacs . configuration = Configuration ( config_entry . data ) Hacs . configuration . config_type = "flow" Hacs . configuration . config_entry = config_entry startup_result = await hacs_startup ( Hacs ) if not startup_result : raise ConfigEntryNotReady return startup_result