original_docstring: Set up the SimpliSafe component.
docstring: Set up the SimpliSafe component.
docstring_tokens: Set up the SimpliSafe component .
code: async def async_setup(hass, config):
      """Set up the SimpliSafe component."""
      hass.data[DOMAIN] = {}
      hass.data[DOMAIN][DATA_CLIENT] = {}
      hass.data[DOMAIN][DATA_LISTENER] = {}
  
      if DOMAIN not in config:
          return True
  
      conf = config[DOMAIN]
  
      for account in conf[CONF_ACCOUNTS]:
          if account[CONF_USERNAME] in configured_instances(hass):
              continue
  
          hass.async_create_task(
              hass.config_entries.flow.async_init(
                  DOMAIN,
                  context={"source": SOURCE_IMPORT},
                  data={
                      CONF_USERNAME: account[CONF_USERNAME],
                      CONF_PASSWORD: account[CONF_PASSWORD],
                      CONF_CODE: account.get(CONF_CODE),
                  },
              )
          )
  
      return True
code_tokens: async def async_setup ( hass , config ) : hass . data [ DOMAIN ] = { } hass . data [ DOMAIN ] [ DATA_CLIENT ] = { } hass . data [ DOMAIN ] [ DATA_LISTENER ] = { } if DOMAIN not in config : return True conf = config [ DOMAIN ] for account in conf [ CONF_ACCOUNTS ] : if account [ CONF_USERNAME ] in configured_instances ( hass ) : continue hass . async_create_task ( hass . config_entries . flow . async_init ( DOMAIN , context = { "source" : SOURCE_IMPORT } , data = { CONF_USERNAME : account [ CONF_USERNAME ] , CONF_PASSWORD : account [ CONF_PASSWORD ] , CONF_CODE : account . get ( CONF_CODE ) , } , ) ) return True
short_docstring: Set up the SimpliSafe component.
short_docstring_tokens: Set up the SimpliSafe component .
comment: """Set up the SimpliSafe component."""