mirror of
https://github.com/esphome/esphome.git
synced 2025-09-01 10:52:19 +01:00
fix percentage handling (#1094)
* fix percentage handling * add test * fix lint errors Co-authored-by: Samuel Sieb <samuel@sieb.net>
This commit is contained in:
@@ -14,6 +14,8 @@ esphome:
|
||||
substitutions:
|
||||
devicename: test3
|
||||
devicecomment: test3 device
|
||||
min_sub: "0.03"
|
||||
max_sub: "12.0%"
|
||||
|
||||
api:
|
||||
port: 8000
|
||||
@@ -769,6 +771,8 @@ servo:
|
||||
id: my_servo
|
||||
output: out
|
||||
restore: true
|
||||
min_level: $min_sub
|
||||
max_level: $max_sub
|
||||
|
||||
ttp229_lsf:
|
||||
|
||||
|
Reference in New Issue
Block a user