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

Add linear calibration sensor filter (#454)

* Add linear calibrate filter

* Remove filter_nan

* Add test
This commit is contained in:
Otto Winter
2019-02-26 19:38:39 +01:00
committed by GitHub
parent 311e837196
commit 1778dd4df9
4 changed files with 74 additions and 21 deletions

View File

@@ -66,7 +66,7 @@ def valid_name(value):
for c in value:
if c not in ALLOWED_NAME_CHARS:
raise vol.Invalid(u"'{}' is an invalid character for names. Valid characters are: {}"
u"".format(c, ALLOWED_NAME_CHARS))
u" (lowercase, no spaces)".format(c, ALLOWED_NAME_CHARS))
return value