Add round sensor filter (#3266)

This commit is contained in:
Jesse Hills 2023-10-14 13:07:27 +13:00 committed by GitHub
parent aebbc732c0
commit a5c1b8e417
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 0 deletions

View File

@ -269,6 +269,18 @@ Configuration variables:
- **min_value** (*Optional*, float): The lower bound of the range.
- **max_value** (*Optional*, float): The upper bound of the range.
``round``
*********
Rounds the value to the given decimal places.
.. code-block:: yaml
- platform: ...
filters:
- round: 1 # will round to 1 decimal place
``quantile``
************