From e003f0baed9e6ec14221c0e589cec68addc97288 Mon Sep 17 00:00:00 2001 From: arretx <32052562+arretx@users.noreply.github.com> Date: Fri, 27 Oct 2017 01:14:08 -0700 Subject: [PATCH] Clarification for a moron ;) (#3797) * Clarification for a moron ;) Often it helps to see the syntax for configuration variables... * This ---> Something like this instead... --- source/_components/sensor.uptime.markdown | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source/_components/sensor.uptime.markdown b/source/_components/sensor.uptime.markdown index 5aa633d57a9..f81d0a36b88 100644 --- a/source/_components/sensor.uptime.markdown +++ b/source/_components/sensor.uptime.markdown @@ -28,3 +28,11 @@ Configuration variables: - **name** (*Optional*): Name of the sensor. Defaults to `Uptime`. - **unit_of_measurement** (*Optional*): Units for uptime measurement in either `days` or `hours`. Defaults to `days`. + +```yaml +# Example with configuration variables +sensor: + - platform: uptime + name: Time Online + unit_of_measurement: hours +````