Skip to content

Fail the tests on Home Assistant deprecation reports - #11

Merged
Varitras merged 4 commits into
mainfrom
feature/deprecation-guard
Nov 1, 2026
Merged

Varitras merged 4 commits into
mainfrom
feature/deprecation-guard

Conversation

@Varitras

@Varitras Varitras commented Nov 1, 2026

Copy link
Copy Markdown
Owner
  • Home Assistant reports a deprecated call by logging a warning and carrying on. A root-log check now fails any test during which Home Assistant reported the integration, including reports at collection time and after the last test. It also fails a test that stops the check from hearing reports.
  • DeprecationWarnings raised from the package are errors; those from Home Assistant or libraries are not.
  • Probes produce every report wording from Home Assistant itself, so a rewording turns the suite red instead of blinding the check.
  • A static scan lists Home Assistant calls known to be deprecated.
  • New weekly, non-gating workflow tries the newest Home Assistant release, betas included.

Home Assistant reports a deprecated call as a log warning and carries on.
A root-log check fails the test, the run end imports every module, own
DeprecationWarnings are errors, and a weekly job tries the next release.
simplefilter("always") sat above the pytest.ini filters, so the check
passed even with a filter that had lost its module field.
@Varitras
Varitras merged commit d18a0b9 into main Nov 1, 2026
10 checks passed
@Varitras
Varitras deleted the feature/deprecation-guard branch November 1, 2026 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant