Skip to content

Commit

Permalink
warn only
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeeus committed Oct 15, 2023
1 parent adbf5b3 commit 5e45eb3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 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 @@ -46,7 +46,7 @@ async def execute_validation(self, *_, **__) -> None:
try:
await self.async_validate()
except ValidationException as exception:
self.failed = True
self.failed = not exception.warning
self.hacs.log.log(
WARNING if exception.warning else ERROR,
"<Validation %s> failed: %s (More info: %s )",
Expand Down
2 changes: 1 addition & 1 deletion tests/validate/test_hacsjson_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,5 +75,5 @@ async def _async_get_hacs_json(_):

check = Validator(repository)
await check.execute_validation()
assert check.failed
assert not check.failed
assert "failed: The 'HACS.md' file for the 'documentation' key does not exist" in caplog.text

0 comments on commit 5e45eb3

Please sign in to comment.