mirror of
https://github.com/esphome/esphome.git
synced 2025-03-15 15:18:16 +00:00
pylint correction
This commit is contained in:
parent
076cdde42e
commit
17cf469776
@ -18,7 +18,7 @@ def validate_pin(value, reference=""):
|
||||
reference = reference.upper()
|
||||
if reference in ["DS2413", "DS2406"]:
|
||||
return cv.one_of("PIOA", "PIOB", upper=True)(value)
|
||||
elif reference == "DS2408":
|
||||
if reference == "DS2408":
|
||||
return cv.one_of("P0", "P1", "P2", "P3", "P4", "P5", "P6", "P7", upper=True)(
|
||||
value
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user