mirror of
https://github.com/esphome/esphome.git
synced 2024-11-25 08:28:12 +01:00
Fix ESP32 BLE
This commit is contained in:
parent
081c2f4e07
commit
b2aecf29dc
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ PLATFORM_SCHEMA = binary_sensor.PLATFORM_SCHEMA.extend({
|
||||||
|
|
||||||
def to_code(config):
|
def to_code(config):
|
||||||
hub = None
|
hub = None
|
||||||
for hub in get_variable(CONF_ESP32_BLE_ID):
|
for hub in get_variable(config[CONF_ESP32_BLE_ID]):
|
||||||
yield
|
yield
|
||||||
addr = [HexInt(i) for i in config[CONF_MAC_ADDRESS].parts]
|
addr = [HexInt(i) for i in config[CONF_MAC_ADDRESS].parts]
|
||||||
rhs = hub.make_device(config[CONF_NAME], ArrayInitializer(*addr, multiline=False))
|
rhs = hub.make_device(config[CONF_NAME], ArrayInitializer(*addr, multiline=False))
|
||||||
|
|
Loading…
Reference in a new issue