Update __init__.py

This commit is contained in:
haudamekki 2024-10-19 21:03:24 +02:00 committed by GitHub
parent 373d62ec1b
commit 44d62b8dac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -30,6 +30,8 @@ CONFIG_SCHEMA = (
.extend(cv.COMPONENT_SCHEMA)
.extend(i2c.i2c_device_schema(0x58))
)
async def to_code(config):
var = cg.new_Pvariable(config[CONF_ID])
await cg.register_component(var, config)