add after_dependencies (#404)

* add after_dependencies

A missing part of https://github.com/home-assistant/home-assistant/pull/23148
Had to learn it hard way so think it needs to be improved.

* tweak

Co-Authored-By: Paulus Schoutsen <paulus@home-assistant.io>

* extra info added

Co-Authored-By: Paulus Schoutsen <paulus@home-assistant.io>

* Update creating_integration_manifest.md

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
This commit is contained in:
akasma74 2020-02-10 16:45:52 +00:00 committed by GitHub
parent d92362b693
commit 5ed68e4f0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,6 +11,7 @@ Since 0.92.0, every integration has a manifest file to specify basic information
"name": "Philips Hue",
"documentation": "https://www.home-assistant.io/components/hue",
"dependencies": ["mqtt"],
"after_dependencies": ["http"],
"codeowners": ["@balloob"],
"requirements": ["aiohue==1.9.1"],
"quality_scale": "platinum"
@ -46,6 +47,10 @@ The website containing documentation on how to use your integration. If this int
Dependencies are other Home Assistant integrations that you want Home Assistant to set up successfully prior to the integration being loaded. This can be necessary in case you want to offer functionality from that other integration, like using webhooks or an MQTT connection.
## After dependencies
This option is used to specify optional dependencies that might be used. When `after_dependencies` is present, set up of an integration will wait for the other dependency to be set up before being set up. It will also make sure that the requirements of `after_dependencies` are installed so methods from the integration can be safely imported.
## Code Owners
GitHub usernames or team names of people that are responsible for this integration. You should add at least your GitHub username here, as well as anyone who helped you to write code that is being included.