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

View file

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