Most catch blocks shouldn’t exist. An exception should rise until it reaches a layer with the context to act on it, and the catches that deserve to exist fit five patterns.
Web search hands an AI assistant stale forum posts and deprecated APIs. Shallow submodules of the Home Assistant and HACS docs, symlinked under docs/ and described in CLAUDE.md, give it the real thing.
AI coding assistants are too helpful: the code works, but it doesn’t belong. SOLID principles, used as constraints on the assistant, give it the pause an experienced developer has before changing things.