1
0
mirror of https://github.com/esphome/esphome.git synced 2025-03-14 06:38:17 +00:00

Fix ESP32 BLE

This commit is contained in:
Otto Winter 2018-06-06 09:18:21 +02:00
parent bf86ccaa9c
commit 39c76cb854

View File

@ -38,7 +38,7 @@ PLATFORM_SCHEMA = binary_sensor.PLATFORM_SCHEMA.extend({
def to_code(config):
hub = None
for hub in get_variable(CONF_ESP32_BLE_ID):
for hub in get_variable(config[CONF_ESP32_BLE_ID]):
yield
addr = [HexInt(i) for i in config[CONF_MAC_ADDRESS].parts]
rhs = hub.make_device(config[CONF_NAME], ArrayInitializer(*addr, multiline=False))