Skip to content

Commit

Permalink
Revert "Restrict to 0 reported issues"
Browse files Browse the repository at this point in the history
This reverts commit 19e3f1a.
  • Loading branch information
ludeeus committed Apr 11, 2024
1 parent 19e3f1a commit 630dde2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,10 @@ async def setup_integration(hass: HomeAssistant, check_report_issue: None) -> No
async def check_report_issue() -> None:
"""Finish things up."""
yield
if (times := len(_async_suggest_report_issue_mock_call_tracker)) != 0:
# Issues may be created because hacs accesses hass.components, hass.helpers and
# calls async_show_progress without passing a progress task
allowed = [0, 1, 2, 3] if AwesomeVersion(HA_VERSION) > "2023.6.0" else [0]
if (times := len(_async_suggest_report_issue_mock_call_tracker)) not in allowed:
raise AssertionError(
f"homeassistant.loader.async_suggest_report_issue has been called {times} times"
)
Expand Down

0 comments on commit 630dde2

Please sign in to comment.