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:
@@ -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):
|
||||
|
Reference in New Issue
Block a user