code: def get_info_from_service(service, zconf):
      
      service_info = None
      try:
          service_info = zconf.get_service_info('_googlecast._tcp.local.',
                                                service)
          if service_info:
              _LOGGER.debug(
                  "get_info_from_service resolved service %s to service_info %s",
                  service, service_info)
      except IOError:
          pass
      return service_info
docs: Resolve service_info from service.