(hass, config)
return True
Set up this integration using yaml.
Set up this integration using yaml.
Set up this integration using yaml .
async def async_setup(hass, config):  # pylint: disable=unused-argument
    """Set up this integration using yaml."""
    if const.DOMAIN not in config:
        return True
    hass.data[const.DOMAIN] = config
    Hacs.hass = hass
    Hacs.configuration = Configuration(config[const.DOMAIN])
    Hacs.configuration.config_type = "yaml"
    await startup_wrapper_for_yaml(Hacs)
    hass.async_create_task(
        hass.config_entries.flow.async_init(
            const.DOMAIN, context={"source": config_entries.SOURCE_IMPORT}, data={}
        )
    )

    return True
async def async_setup ( hass , config ) : # pylint: disable=unused-argument if const . DOMAIN not in config : return True hass . data [ const . DOMAIN ] = config Hacs . hass = hass Hacs . configuration = Configuration ( config [ const . DOMAIN ] ) Hacs . configuration . config_type = "yaml" await startup_wrapper_for_yaml ( Hacs ) hass . async_create_task ( hass . config_entries . flow . async_init ( const . DOMAIN , context = { "source" : config_entries . SOURCE_IMPORT } , data = { } ) ) return True