1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-05 21:02:20 +01:00

Implement 'round to nearest multiple' filter (#7142)

This commit is contained in:
Björn Ebbinghaus
2024-08-02 01:58:59 +02:00
committed by GitHub
parent aedfb32482
commit 4a7570770b
5 changed files with 38 additions and 0 deletions

View File

@@ -464,6 +464,7 @@ zero_to_one_float = float_range(min=0, max=1)
negative_one_to_one_float = float_range(min=-1, max=1)
positive_int = int_range(min=0)
positive_not_null_int = int_range(min=0, min_included=False)
positive_not_null_float = float_range(min=0, min_included=False)
def validate_id_name(value):