Allow validation of pins based on hub config (#5647)

This commit is contained in:
Jesse Hills authored and GitHub committed 2023-11-02 15:32:00 +13:00
1 parent 40c001bdc2
commit 9eea52ea85
8 files changed
+72 -12

No files matched your search

+1 -1
View File
@@ -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)