From 73a55b353d54d317fbdb28b88b981d60fbb2e6ab Mon Sep 17 00:00:00 2001 From: Oncleben31 Date: Fri, 5 Oct 2018 11:36:51 +0200 Subject: [PATCH] Use the new style for configuration variables description for ping sensor (#6527) Implement the new style for configuration variables description as requested by #6385 --- .../_components/binary_sensor.ping.markdown | 22 ++++++++++++++----- 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/source/_components/binary_sensor.ping.markdown b/source/_components/binary_sensor.ping.markdown index b5cc32fe9b8..193297cbd88 100644 --- a/source/_components/binary_sensor.ping.markdown +++ b/source/_components/binary_sensor.ping.markdown @@ -26,12 +26,22 @@ binary_sensor: - platform: ping host: 192.168.0.1 ``` - -Configuration variables: - -- **host** (*Required*): The IP address or hostname of the system you want to track. -- **count** (*Optional*): Number of packets to send. Defaults to 5. -- **name** (*Optional*): Let you overwrite the name of the device. Defaults to `Ping Binary sensor`. +{% configuration %} +host: + description: The IP address or hostname of the system you want to track. + required: true + type: string +count: + description: Number of packets to send. + required: false + type: integer + default: 5 +name: + description: Let you overwrite the name of the device. + required: false + type: string + default: "`Ping Binary sensor`" +{% endconfiguration %} The sensor exposes the different round trip times values measured by `ping` as attributes: