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

Rewrite interrupt components (#464)

* Rewrite intterupt components

* Fix test
This commit is contained in:
Otto Winter
2019-03-03 16:47:10 +01:00
committed by GitHub
parent 4b017e2096
commit 5a102c2ab7
11 changed files with 57 additions and 19 deletions

View File

@@ -430,6 +430,7 @@ frequency = float_with_unit("frequency", r"(Hz|HZ|hz)?")
resistance = float_with_unit("resistance", r"(Ω|Ω|ohm|Ohm|OHM)?")
current = float_with_unit("current", r"(a|A|amp|Amp|amps|Amps|ampere|Ampere)?")
voltage = float_with_unit("voltage", r"(v|V|volt|Volts)?")
distance = float_with_unit("distance", r"(m)")
def validate_bytes(value):