original_docstring: Import Awair configuration from YAML.
docstring: Import Awair configuration from YAML.
docstring_tokens: Import Awair configuration from YAML .
code: async def async_setup_platform(
      hass: HomeAssistant,
      config: dict,
      async_add_entities: Callable,
      discovery_info: dict = None,
  ):
      """Import Awair configuration from YAML."""
      LOGGER.warning(
          "Loading Recollect Waste via platform setup is deprecated. "
          "Please remove it from your configuration."
      )
      hass.async_create_task(
          hass.config_entries.flow.async_init(
              DOMAIN,
              context={"source": SOURCE_IMPORT},
              data=config,
          )
      )
code_tokens: async def async_setup_platform ( hass : HomeAssistant , config : dict , async_add_entities : Callable , discovery_info : dict = None , ) : LOGGER . warning ( "Loading Recollect Waste via platform setup is deprecated. " "Please remove it from your configuration." ) hass . async_create_task ( hass . config_entries . flow . async_init ( DOMAIN , context = { "source" : SOURCE_IMPORT } , data = config , ) )
short_docstring: Import Awair configuration from YAML.
short_docstring_tokens: Import Awair configuration from YAML .
comment: """Import Awair configuration from YAML."""