Joakim Sørensen 84dbd39892
GitHub config flow (#21228)
Co-authored-by: Franck Nijhof <git@frenck.dev>
2022-01-18 20:59:14 +01:00

40 lines
1.5 KiB
Markdown

---
title: GitHub
description: Instructions on how to integrate the GitHub integration into Home Assistant.
ha_category:
- Sensor
ha_config_flow: true
ha_release: 0.88
ha_iot_class: Cloud Polling
ha_domain: github
ha_platforms:
- sensor
ha_codeowners:
- '@timmo001'
- '@ludeeus'
---
The GitHub integration allows you to monitor your favorite [GitHub][github] repositories.
{% include integrations/config_flow.md %}
When you set up this integration, you will first be guided to allow the integration to use the [GitHub API][github_api] on your behalf. If you do not yet have a [GitHub][github] account you will be prompted to create one during the configuration of the integration.
When you have authorized the integration, you select repositories you want to monitor, the list contains repositories you have [starred][github_starred] on GitHub with your account.
Most of the entities provided by this integration are disabled by default, you can enable these by going to the {% my entities title="entities panel" %}.
## Remove authorization
After you have removed the integration from {% my integrations title="Configuration -> Devices & Services" %}, you need to manually revoke OAuth app authorization.
1. Go to your [Authorized OAuth Apps][github_apps]
2. Find the "Home Assistant GitHub Integration" application
3. Click the 3 dots (`...`) to the right of the name
4. Select "Revoke"
[github]: https://github.com/
[github_api]: https://docs.github.com/en/rest
[github_starred]: https://github.com/stars
[github_apps]: https://github.com/settings/applications