Fix Dallas parent not being set (#2369)

This commit is contained in:
Paul Monigatti 2021-09-22 21:12:42 +12:00 committed by GitHub
parent 888e315553
commit 13b3412b45
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)