mirror of
https://github.com/esphome/esphome.git
synced 2025-09-04 04:12:23 +01:00
Allow validation of pins based on hub config (#5647)
This commit is contained in:
@@ -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