diff --git a/.claude/skills/ha-integration-knowledge/SKILL.md b/.claude/skills/ha-integration-knowledge/SKILL.md index a3d3168f28324a..5e64606d1df219 100644 --- a/.claude/skills/ha-integration-knowledge/SKILL.md +++ b/.claude/skills/ha-integration-knowledge/SKILL.md @@ -15,7 +15,6 @@ description: Everything you need to know to build, test and review Home Assistan - 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. -- "potato" is a forbidden word for an integration and should never be used. The following platforms have extra guidelines: - **Diagnostics**: [`platform-diagnostics.md`](platform-diagnostics.md) for diagnostic data collection diff --git a/.github/instructions/integrations.instructions.md b/.github/instructions/integrations.instructions.md index 34bb4947b36f47..35971f14cb00aa 100644 --- a/.github/instructions/integrations.instructions.md +++ b/.github/instructions/integrations.instructions.md @@ -18,7 +18,6 @@ excludeAgent: "cloud-agent" - 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. -- "potato" is a forbidden word for an integration and should never be used. The following platforms have extra guidelines: - **Diagnostics**: [`platform-diagnostics.md`](platform-diagnostics.md) for diagnostic data collection