Move instructions to section section

This commit is contained in:
Fabian Affolter 2018-10-13 00:16:46 +02:00
parent 18a734a04d
commit f1a269a3b7
No known key found for this signature in database
GPG Key ID: E23CD2DD36A4397F

View File

@ -15,18 +15,30 @@ ha_iot_class: "Cloud Polling"
With this sensor platform, you will be able to integrate the test build results reported by [Travis-CI](https://travis-ci.org/) working within Home Assistant. With this sensor platform, you will be able to integrate the test build results reported by [Travis-CI](https://travis-ci.org/) working within Home Assistant.
## {% linkable_title Setup %}
Create a GitHub [access token](https://github.com/settings/tokens) with the following scopes:
- **read:org**
- **user:email**
- **repo_deployment**
- **repo:status**
- **write:repo_hook**
## {% linkable_title Configuration %}
To enable this platform, please add the following to your `configuration.yaml` file: To enable this platform, please add the following to your `configuration.yaml` file:
```yaml ```yaml
# Example configuration.yaml entry # Example configuration.yaml entry
sensor: sensor:
- platform: travisci - platform: travisci
api_key: 123456789 api_key: YOUR_ACCESS_TOKEN
``` ```
{% configuration %} {% configuration %}
api_key: api_key:
description: "GitHub [access token](https://github.com/settings/tokens) with the following scopes: *read:org*, *user:email*, *repo_deployment*, *repo:status*, *write:repo_hook*." description: The acces token for GitHub.
required: true required: true
type: string type: string
branch: branch: