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
+1 -1
View File
@@ -65,7 +65,7 @@ PCF8574_PIN_SCHEMA = cv.All(
)
@pins.PIN_SCHEMA_REGISTRY.register("pcf8574", PCF8574_PIN_SCHEMA)
@pins.PIN_SCHEMA_REGISTRY.register(CONF_PCF8574, PCF8574_PIN_SCHEMA)
async def pcf8574_pin_to_code(config):
var = cg.new_Pvariable(config[CONF_ID])
parent = await cg.get_variable(config[CONF_PCF8574])