Home AssistantHome AssistantContributors
In code
"requirements" in manifest.json
Also
requirements, dependency

Code that talks to a specific device or service belongs in a library on PyPI, not in the integration. The integration lists that library as a requirement, and Home Assistant installs it when needed.

Requirements are pinned to an exact version, so every installation runs the same code.