Repository navigation
Fail the tests on Home Assistant deprecation reports - #11
Merged
Merged
Conversation
Varitras
commented
Nov 1, 2026
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.