Update __init__.py

This commit is contained in:
t0urista 2024-10-30 08:52:44 +01:00 committed by GitHub
parent 80874184a6
commit c7616edfec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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))
if CONF_ENCRYPTION_KEY in config:
cg.add(var.set_encryption_key(config[CONF_ENCRYPTION_KEY]))