docs: def http_get(url, filename=None):
      """Download HTTP data."""
      try:
          ret = requests.get(url)
      except requests.exceptions.SSLError as error:
          _LOGGER.error(error)
          return False
  
      if ret.status_code != 200:
          return False
  
      if filename is None:
          return ret.content
  
      with open(filename, 'wb') as data:
          data.write(ret.content)
      return True