This repository contains the core of Home Assistant, a Python 3 based home automation application.
- Do NOT amend, squash, or rebase commits that have already been pushed to the PR branch after the PR is opened - Reviewers need to follow the commit history, as well as see what changed since their last review
.vscode/tasks.json contains useful commands used for development.
- Python 3.14 explicitly allows
except TypeA, TypeB:without parentheses.
When writing or modifying tests, ensure all test function parameters have type annotations.
Prefer concrete types (for example, HomeAssistant, MockConfigEntry, etc.) over Any.
Integrations with Platinum or Gold level in the Integration Quality Scale reflect a high standard of code quality and maintainability. When looking for examples of something, these are good places to start. The level is indicated in the manifest.json of the integration.