Update __init__.py
This commit is contained in:
committed by
GitHub
parent
85f02c972e
commit
7c56fedd32
@@ -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])
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user