From 74c1a6c2e0e8140dbf612425e5ad1ed602d6fb1d Mon Sep 17 00:00:00 2001 From: Nicholas Westerhausen Date: Tue, 2 Oct 2018 14:35:25 -0400 Subject: [PATCH] Ping Sensor configuration variable style (#6449) Change to new style for configuration variables description. Related to #6385. --- source/_components/device_tracker.ping.markdown | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/source/_components/device_tracker.ping.markdown b/source/_components/device_tracker.ping.markdown index 675150cb18c..80951c763f8 100644 --- a/source/_components/device_tracker.ping.markdown +++ b/source/_components/device_tracker.ping.markdown @@ -31,9 +31,15 @@ device_tracker: hostone: 192.168.2.10 ``` -Configuration variables: - -- **hosts** array (*Required*): List of device names and their corresponding IP address or hostname. -- **count** (*Optional*): Number of packet used for each device (avoid false detection). +{% configuration %} +hosts: + description: List of device names and their corresponding IP address or hostname. + required: true + type: array +count: + description: Number of packet used for each device (avoid false detection). + required: false + type: int +{% endconfiguration %} See the [device tracker component page](/components/device_tracker/) for instructions how to configure the people to be tracked.