mirror of
https://github.com/esphome/esphome.git
synced 2024-12-22 21:44:55 +01:00
Fix Dallas parent not being set (#2369)
This commit is contained in:
parent
888e315553
commit
13b3412b45
1 changed files with 2 additions and 0 deletions
|
@ -46,5 +46,7 @@ async def to_code(config):
|
||||||
if CONF_RESOLUTION in config:
|
if CONF_RESOLUTION in config:
|
||||||
cg.add(var.set_resolution(config[CONF_RESOLUTION]))
|
cg.add(var.set_resolution(config[CONF_RESOLUTION]))
|
||||||
|
|
||||||
|
cg.add(var.set_parent(hub))
|
||||||
|
|
||||||
cg.add(hub.register_sensor(var))
|
cg.add(hub.register_sensor(var))
|
||||||
await sensor.register_sensor(var, config)
|
await sensor.register_sensor(var, config)
|
||||||
|
|
Loading…
Reference in a new issue