Allow validation of pins based on hub config (#5647)
This commit is contained in:
1 parent
40c001bdc2
commit
9eea52ea85
8 files changed
+72
-12
No files matched your search
@@ -35,7 +35,7 @@ async def gpio_pin_expression(conf):
|
||||
return None
|
||||
from esphome import pins
|
||||
|
||||
for key, (func, _) in pins.PIN_SCHEMA_REGISTRY.items():
|
||||
for key, (func, _, _) in pins.PIN_SCHEMA_REGISTRY.items():
|
||||
if key in conf:
|
||||
return await coroutine(func)(conf)
|
||||
return await coroutine(pins.PIN_SCHEMA_REGISTRY[CORE.target_platform][0])(conf)
|
||||
|
||||
Reference in new issue
Block a user