diff --git a/action/action.py b/action/action.py index bbdcb381af0..d5859e01224 100644 --- a/action/action.py +++ b/action/action.py @@ -144,6 +144,9 @@ async def preflight(): if category is None: error("No category found, use env CATEGORY to set this.") + if category not in CATEGORIES: + error(f"Category {category} is not valid.") + if ref is None and GITHUB_REPOSITORY != HacsGitHubRepo.DEFAULT: repo = await hacs.githubapi.repos.get(repository) ref = repo.data.default_branch