Adjust hassfest.manifest based on config.action (#100577)

This commit is contained in:
Raman Gupta
2023-09-19 11:30:38 -04:00
committed by GitHub
parent 7c4f08e6b3
commit 2ad0fd1ce1
2 changed files with 11 additions and 7 deletions

View File

@@ -4,7 +4,7 @@ from __future__ import annotations
from dataclasses import dataclass, field
import json
import pathlib
from typing import Any
from typing import Any, Literal
@dataclass
@@ -26,7 +26,7 @@ class Config:
specific_integrations: list[pathlib.Path] | None
root: pathlib.Path
action: str
action: Literal["validate", "generate"]
requirements: bool
errors: list[Error] = field(default_factory=list)
cache: dict[str, Any] = field(default_factory=dict)