parameters: ()
return_statement: return frontend
docstring: get the frontend version from the manifest.
docstring_summary: get the frontend version from the manifest.
docstring_tokens: get the frontend version from the manifest .
function: def get_frontend_version():
      """get the frontend version from the manifest."""
      manifest = read_hacs_manifest()
      frontend = 0
      for requirement in manifest.get("requirements", []):
          if requirement.startswith("hacs_frontend"):
              frontend = requirement.split("==")[1]
              break
      return frontend
function_tokens: def get_frontend_version ( ) : manifest = read_hacs_manifest ( ) frontend = 0 for requirement in manifest . get ( "requirements" , [ ] ) : if requirement . startswith ( "hacs_frontend" ) : frontend = requirement . split ( "==" ) [ 1 ] break return frontend