mirror of
https://github.com/esphome/esphome.git
synced 2024-12-18 03:15:06 +01:00
Update __init__.py
This commit is contained in:
parent
80874184a6
commit
c7616edfec
1 changed files with 2 additions and 1 deletions
|
@ -32,4 +32,5 @@ async def to_code(config):
|
|||
await esp32_ble_tracker.register_ble_device(var, config)
|
||||
|
||||
cg.add(var.set_address(config[CONF_MAC_ADDRESS].as_hex))
|
||||
cg.add(var.set_encryption_key(config[CONF_ENCRYPTION_KEY]))
|
||||
if CONF_ENCRYPTION_KEY in config:
|
||||
cg.add(var.set_encryption_key(config[CONF_ENCRYPTION_KEY]))
|
||||
|
|
Loading…
Reference in a new issue