Skip to content

Commit

Permalink
Make ActionValidationBase.categories a tuple (#3569)
Browse files Browse the repository at this point in the history
Co-authored-by: Joakim Sørensen <[email protected]>
  • Loading branch information
emontnemery and ludeeus authored Apr 12, 2024
1 parent 7367d39 commit 2a4be46
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion custom_components/hacs/validate/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class ValidationException(HacsException):
class ActionValidationBase:
"""Base class for action validation."""

categories: list[HacsCategory] = []
categories: tuple[HacsCategory, ...] = ()
allow_fork: bool = True
more_info: str = "https://hacs.xyz/docs/publish/action"

Expand Down
2 changes: 1 addition & 1 deletion custom_components/hacs/validate/brands.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class Validator(ActionValidationBase):
"""Validate the repository."""

more_info = "https://hacs.xyz/docs/publish/include#check-brands"
categories = [HacsCategory.INTEGRATION]
categories = (HacsCategory.INTEGRATION,)

async def async_validate(self) -> None:
"""Validate the repository."""
Expand Down
2 changes: 1 addition & 1 deletion custom_components/hacs/validate/images.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ async def async_setup_validator(repository: HacsRepository) -> Validator:
class Validator(ActionValidationBase):
"""Validate the repository."""

categories = [HacsCategory.PLUGIN, HacsCategory.THEME]
categories = (HacsCategory.PLUGIN, HacsCategory.THEME)
more_info = "https://hacs.xyz/docs/publish/include#check-images"

async def async_validate(self) -> None:
Expand Down
2 changes: 1 addition & 1 deletion custom_components/hacs/validate/integration_manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class Validator(ActionValidationBase):

repository: HacsIntegrationRepository
more_info = "https://hacs.xyz/docs/publish/include#check-manifest"
categories = [HacsCategory.INTEGRATION]
categories = (HacsCategory.INTEGRATION,)

async def async_validate(self) -> None:
"""Validate the repository."""
Expand Down

0 comments on commit 2a4be46

Please sign in to comment.