Skip to content

Commit 4f35b25

Browse files
Fix formatting of voltage sensor examples in documentation
1 parent ec17830 commit 4f35b25

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Example of voltage sensor with a maximum capacity of 3 volts, with a linear perc
5353
```{{ (states('sensor.my_sensor_voltage')|float(0) / 3 * 100) | round(0) }}```
5454

5555
Example of voltage sensor with a maximum capacity of 3 volts, where 2 volts should be equivalent to 10%
56-
{{ [0, (((states('sensor.voltage')|float(0) - 2) / (3 - 2)) * 90 + 10) | round(0)] | max }}
56+
```{{ [0, (((states('sensor.voltage')|float(0) - 2) / (3 - 2)) * 90 + 10) | round(0)] | max }}```
5757

5858
Example of binary low sensor, returning either 100% or 9%
5959
```{{ 9 if states('binary_sensor.my_sensor_low') == true else 100 }}```

0 commit comments

Comments
 (0)