From fc01fd4609f1244611474d21d4fcc7453388654f Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 9 Jul 2018 20:22:26 +0200 Subject: [PATCH] Update configuration description (#5722) --- source/_components/sensor.twitch.markdown | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/source/_components/sensor.twitch.markdown b/source/_components/sensor.twitch.markdown index 6ed513ca902..d1265c1b1d5 100644 --- a/source/_components/sensor.twitch.markdown +++ b/source/_components/sensor.twitch.markdown @@ -16,6 +16,8 @@ ha_iot_class: "Cloud Polling" The `twitch` platform will allow you to monitor [Twitch](http://www.twitch.tv/) channel status from within Home Assistant and setup automation based on the information. +## {% linkable_title Configuration %} + To use Twitch with your installation, add the following to your `configuration.yaml` file: ```yaml @@ -27,8 +29,13 @@ sensor: - channel2 ``` -Configuration variables: - -- **channels** array (*Required*): Array of channels. - - **channel_name** (*Required*): Name of the channel. +{% configuration %} +channels: + description: List of channels. + required: true + type: map + keys: + channel_id: + description: Name of the channel. +{% endconfiguration %}