Fix lambda example

This commit is contained in:
Otto Winter 2018-06-05 21:07:40 +02:00
parent f9e8305ad7
commit 6cf4ae0b3d
No known key found for this signature in database
GPG Key ID: DB66C0BE6013F97E
1 changed files with 2 additions and 2 deletions

View File

@ -87,7 +87,7 @@ sensor <https://www.home-assistant.io/components/sensor.filter/>`__.
- or:
- throttle: 1s
- delta: 5.0
- lambda: x * (9.0/5.0) + 32.0
- lambda: return x * (9.0/5.0) + 32.0;
Above example configuration entry is probably a bit useless, but shows
every filter there is currently:
@ -159,7 +159,7 @@ fahrenheit.
.. code:: yaml
filters:
- lambda: x * (9.0/5.0) + 32.0
- lambda: return x * (9.0/5.0) + 32.0;
unit_of_measurement: "°F"
.. _sensor-default_filter: