From eb56ae1405992db4769dab5f3c90cd60181af2d8 Mon Sep 17 00:00:00 2001 From: vaidyasm Date: Tue, 23 Oct 2018 17:18:21 +0545 Subject: [PATCH] Update Documentation for 'Soundtouch Media Player Component Configuration (#7032) * Update Documentation for 'Soundtouch Media Player Component Configuration * Adds default value for 'name' key Default value for 'name' key is defined at https://github.com/home-assistant/home-assistant/blob/master/homeassistant/components/media_player/soundtouch.py#L59 --- .../media_player.soundtouch.markdown | 21 ++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/source/_components/media_player.soundtouch.markdown b/source/_components/media_player.soundtouch.markdown index 463914f2366..c70eba92446 100644 --- a/source/_components/media_player.soundtouch.markdown +++ b/source/_components/media_player.soundtouch.markdown @@ -43,11 +43,22 @@ media_player: name: Soundtouch kitchen ``` -Configuration variables: - -- **host** (*Required*): The host name or address of the Soundtouch device. -- **name** (*Required*): The name of the device used in the frontend. -- **port** (*Optional*): The port number. Defaults to 8090. +{% configuration %} +host: + description: The host name or address of the Soundtouch device. + required: true + type: string +name: + description: The name of the device used in the frontend. + required: true + default: Bose Soundtouch + type: string +port: + description: The port number. + required: false + default: 8090 + type: integer +{% endconfiguration %} You can switch between one of your 6 pre-configured presets using ```media_player.play_media```