mirror of
https://github.com/esphome/esphome.git
synced 2024-12-11 16:04:54 +01:00
Update sensor.py
This commit is contained in:
parent
b7a7dcc4dc
commit
fb046fd9d1
1 changed files with 7 additions and 6 deletions
|
@ -42,6 +42,7 @@ CONFIG_SCHEMA = (
|
||||||
.extend(i2c.i2c_device_schema(0x40))
|
.extend(i2c.i2c_device_schema(0x40))
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
async def to_code(config):
|
async def to_code(config):
|
||||||
var = cg.new_Pvariable(config[CONF_ID])
|
var = cg.new_Pvariable(config[CONF_ID])
|
||||||
await cg.register_component(var, config)
|
await cg.register_component(var, config)
|
||||||
|
|
Loading…
Reference in a new issue