Fix ESP32 BLE

This commit is contained in:
Otto Winter 2018-06-06 09:18:21 +02:00
parent 081c2f4e07
commit b2aecf29dc
No known key found for this signature in database
GPG Key ID: DB66C0BE6013F97E
1 changed files with 1 additions and 1 deletions

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))