Update __init__.py

This commit is contained in:
Dave Williams | DitroniX | G8PUO
2026-06-13 11:42:59 +01:00
committed by GitHub
parent 85f02c972e
commit 7c56fedd32
-2
View File
@@ -20,11 +20,9 @@ CONFIG_SCHEMA = cv.Schema(
{ {
cv.GenerateID(): cv.declare_id(TCA6408Component), cv.GenerateID(): cv.declare_id(TCA6408Component),
cv.Optional(CONF_ADDRESS, default=0x20): cv.i2c_address, cv.Optional(CONF_ADDRESS, default=0x20): cv.i2c_address,
cv.Optional(CONF_INTERRUPT_PIN): gpio.gpio_input_pin_schema,
} }
).extend(cv.COMPONENT_SCHEMA) ).extend(cv.COMPONENT_SCHEMA)
async def to_code(config): async def to_code(config):
var = cg.new_Pvariable(config[CONF_ID]) var = cg.new_Pvariable(config[CONF_ID])