original_docstring: Add platforms for a single table with the given hostname.
docstring: Add platforms for a single table with the given hostname.
docstring_tokens: Add platforms for a single table with the given hostname .
code: async def add_table(host, name=None):
          """Add platforms for a single table with the given hostname."""
          table = await Table.connect(host, session)
          if name is None:
              name = table.name
          tables[name] = table
          _LOGGER.debug("Connected to %s at %s", name, host)
  
          hass.async_create_task(async_load_platform(
              hass, 'light', DOMAIN, {
                  CONF_NAME: name,
              }, config
          ))
          hass.async_create_task(async_load_platform(
              hass, 'media_player', DOMAIN, {
                  CONF_NAME: name,
                  CONF_HOST: host,
              }, config
          ))
code_tokens: async def add_table ( host , name = None ) : table = await Table . connect ( host , session ) if name is None : name = table . name tables [ name ] = table _LOGGER . debug ( "Connected to %s at %s" , name , host ) hass . async_create_task ( async_load_platform ( hass , 'light' , DOMAIN , { CONF_NAME : name , } , config ) ) hass . async_create_task ( async_load_platform ( hass , 'media_player' , DOMAIN , { CONF_NAME : name , CONF_HOST : host , } , config ) )
short_docstring: Add platforms for a single table with the given hostname.
short_docstring_tokens: Add platforms for a single table with the given hostname .
comment: """Add platforms for a single table with the given hostname."""