mirror of
https://github.com/esphome/esphome.git
synced 2024-11-10 17:27:45 +01:00
Fix modbus register (#806)
Fixes https://github.com/esphome/feature-requests/issues/49#issuecomment-546555289 Co-Authored-By: tsunglung <tsunglung@users.noreply.github.com>
This commit is contained in:
parent
775b51c6a1
commit
847fe5adca
1 changed files with 1 additions and 0 deletions
|
@ -41,3 +41,4 @@ def register_modbus_device(var, config):
|
|||
parent = yield cg.get_variable(config[CONF_MODBUS_ID])
|
||||
cg.add(var.set_parent(parent))
|
||||
cg.add(var.set_address(config[CONF_ADDRESS]))
|
||||
cg.add(parent.register_device(var))
|
||||
|
|
Loading…
Reference in a new issue