diff --git a/components/esp32_presense/__init__.py b/components/esp32_presense/__init__.py index fbcebd0..23e303e 100644 --- a/components/esp32_presense/__init__.py +++ b/components/esp32_presense/__init__.py @@ -35,7 +35,7 @@ async def to_code(config): cg.add(var.set_room(config[CONF_ROOM_KEY])) # cg.add(var.set_base_topic(config[CONF_BASE_TOPIC_KEY])) # cg.add(var.set_addresses(config[CONF_MAC_KEY])) - # cg.add(var.set_max_distance(config[CONF_MAX_DISTANCE])) + cg.add(var.set_max_distance(config[CONF_MAX_DISTANCE])) add_idf_sdkconfig_option("CONFIG_BT_ENABLED", True) add_idf_sdkconfig_option("CONFIG_BT_BLUEDROID_ENABLED", False)