From f1a269a3b7b7a095d7d65f31ba92eaf05f707627 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 13 Oct 2018 00:16:46 +0200 Subject: [PATCH] Move instructions to section section --- source/_components/sensor.travisci.markdown | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/source/_components/sensor.travisci.markdown b/source/_components/sensor.travisci.markdown index 4cf18089651..262f7359d71 100644 --- a/source/_components/sensor.travisci.markdown +++ b/source/_components/sensor.travisci.markdown @@ -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. +## {% 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: ```yaml # Example configuration.yaml entry sensor: - platform: travisci - api_key: 123456789 + api_key: YOUR_ACCESS_TOKEN ``` {% configuration %} 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 type: string branch: