code: async def async_discovery(session):
      
      bridges = []
      response = await async_request(session.get, URL_DISCOVER)
  
      if not response:
          _LOGGER.info("No discoverable bridges available.")
          return bridges
  
      for bridge in response:
          bridges.append({'bridgeid': bridge['id'],
                          'host': bridge['internalipaddress'],
                          'port': bridge['internalport']})
  
      _LOGGER.info("Discovered the following bridges: %s.", bridges)
  
      return bridges
docs: Find bridges allowing gateway discovery.