1
0
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:
Jesse Hills
2023-11-02 15:32:00 +13:00
committed by GitHub
parent 40c001bdc2
commit 9eea52ea85
8 changed files with 72 additions and 12 deletions

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)