From b2aecf29dca83a9cd1417abb28bacf1d5366473f Mon Sep 17 00:00:00 2001 From: Otto Winter Date: Wed, 6 Jun 2018 09:18:21 +0200 Subject: [PATCH] Fix ESP32 BLE --- esphomeyaml/components/binary_sensor/esp32_ble.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphomeyaml/components/binary_sensor/esp32_ble.py b/esphomeyaml/components/binary_sensor/esp32_ble.py index 06c3e105dc..d080a96dfe 100644 --- a/esphomeyaml/components/binary_sensor/esp32_ble.py +++ b/esphomeyaml/components/binary_sensor/esp32_ble.py @@ -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))