1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-30 22:53:59 +00: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

@@ -92,7 +92,7 @@ PCA9554_PIN_SCHEMA = cv.All(
)
@pins.PIN_SCHEMA_REGISTRY.register("pca9554", PCA9554_PIN_SCHEMA)
@pins.PIN_SCHEMA_REGISTRY.register(CONF_PCA9554, PCA9554_PIN_SCHEMA)
async def pca9554_pin_to_code(config):
var = cg.new_Pvariable(config[CONF_ID])
parent = await cg.get_variable(config[CONF_PCA9554])