ha-integration-knowledge

Installation
SKILL.md

File Locations

  • Integration code: ./homeassistant/components/<integration_domain>/
  • Integration tests: ./tests/components/<integration_domain>/

General guidelines

  • When looking for examples, prefer integrations with the platinum or gold quality scale level first.
  • Polling intervals are NOT user-configurable. Never add scan_interval, update_interval, or polling frequency options to config flows or config entries.
  • Do NOT allow users to set config entry names in config flows. Names are automatically generated or can be customized later in UI. Exception: helper integrations may allow custom names.
  • For entity actions and entity services, avoid requesting redundant defensive checks for fields already enforced by Home Assistant validation schemas and entity filters; only request extra guards when values bypass validation or are transformed unsafely.
  • When validation guarantees a key is present, prefer direct dictionary indexing (data["key"]) over .get("key") so invalid assumptions fail fast.
  • Integrations should be thin wrappers. Protocol parsing, device state machines, or other domain logic belong in a separate PyPI library, not in the integration itself. If unsure, ask before inlining.
  • Integrations should not implement fixes or workarounds for limitations in libraries. Instead, the library should be updated to fix the issue.
  • Do not add entities for data that Home Assistant intentionally only exposes through an action, for example weather forecasts (weather.get_forecasts).
  • In config flows, map known failures to the matching standard error (for example invalid_auth, cannot_connect) without logging them. If unexpected exceptions are caught, log them with _LOGGER.exception() and map them to unknown. Do not mix translated and untranslated text in an error shown to the user.
  • Options flows read their config entry from the inherited config_entry property. async_get_options_flow(config_entry) receives the entry, but returns the handler without passing it on, as in the options flow docs. Do not suggest assigning self.config_entry (the setter was removed in 2025.12) or using OptionsFlowWithConfigEntry in core. To type runtime_data, declare config_entry: <Domain>ConfigEntry on the options flow class.
  • Bump dependencies in a standalone PR that contains only the compatibility adjustments the bump requires. Features that need the new version go in a follow-up PR.
Installs
111
GitHub Stars
92.5K
First Seen
Apr 29, 2026