Skip to content

Commit e003f0b

Browse files
arretxfabaff
authored andcommitted
Clarification for a moron ;) (home-assistant#3797)
* Clarification for a moron ;) Often it helps to see the syntax for configuration variables... * This ---> Something like this instead...
1 parent ca52e23 commit e003f0b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

source/_components/sensor.uptime.markdown

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,11 @@ Configuration variables:
2828
2929
- **name** (*Optional*): Name of the sensor. Defaults to `Uptime`.
3030
- **unit_of_measurement** (*Optional*): Units for uptime measurement in either `days` or `hours`. Defaults to `days`.
31+
32+
```yaml
33+
# Example with configuration variables
34+
sensor:
35+
- platform: uptime
36+
name: Time Online
37+
unit_of_measurement: hours
38+
````

0 commit comments

Comments
 (0)