Update sensor.py

This commit is contained in:
optimusprimespace 2024-05-03 16:13:12 -04:00
parent b7a7dcc4dc
commit fb046fd9d1

View file

@ -42,6 +42,7 @@ CONFIG_SCHEMA = (
.extend(i2c.i2c_device_schema(0x40))
)
async def to_code(config):
var = cg.new_Pvariable(config[CONF_ID])
await cg.register_component(var, config)