1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-26 15:12:21 +01:00

Merge branch 'remove_esp32_arduino_ble_limiations' into integration

This commit is contained in:
J. Nick Koston
2025-09-23 08:41:47 -05:00
2 changed files with 4 additions and 10 deletions

View File

@@ -59,9 +59,7 @@ CONFIG_SCHEMA = cv.All(
{ {
cv.GenerateID(): cv.declare_id(BluetoothProxy), cv.GenerateID(): cv.declare_id(BluetoothProxy),
cv.Optional(CONF_ACTIVE, default=True): cv.boolean, cv.Optional(CONF_ACTIVE, default=True): cv.boolean,
cv.SplitDefault(CONF_CACHE_SERVICES, esp32_idf=True): cv.All( cv.Optional(CONF_CACHE_SERVICES, default=True): cv.boolean,
cv.only_with_esp_idf, cv.boolean
),
cv.Optional( cv.Optional(
CONF_CONNECTION_SLOTS, CONF_CONNECTION_SLOTS,
default=DEFAULT_CONNECTION_SLOTS, default=DEFAULT_CONNECTION_SLOTS,

View File

@@ -174,16 +174,12 @@ CONFIG_SCHEMA = cv.Schema(
cv.Optional( cv.Optional(
CONF_ADVERTISING_CYCLE_TIME, default="10s" CONF_ADVERTISING_CYCLE_TIME, default="10s"
): cv.positive_time_period_milliseconds, ): cv.positive_time_period_milliseconds,
cv.SplitDefault(CONF_DISABLE_BT_LOGS, esp32_idf=True): cv.All( cv.Optional(CONF_DISABLE_BT_LOGS, default=True): cv.boolean,
cv.only_with_esp_idf, cv.boolean cv.Optional(CONF_CONNECTION_TIMEOUT, default="20s"): cv.All(
),
cv.SplitDefault(CONF_CONNECTION_TIMEOUT, esp32_idf="20s"): cv.All(
cv.only_with_esp_idf,
cv.positive_time_period_seconds, cv.positive_time_period_seconds,
cv.Range(min=TimePeriod(seconds=10), max=TimePeriod(seconds=180)), cv.Range(min=TimePeriod(seconds=10), max=TimePeriod(seconds=180)),
), ),
cv.SplitDefault(CONF_MAX_NOTIFICATIONS, esp32_idf=12): cv.All( cv.Optional(CONF_MAX_NOTIFICATIONS, default=12): cv.All(
cv.only_with_esp_idf,
cv.positive_int, cv.positive_int,
cv.Range(min=1, max=64), cv.Range(min=1, max=64),
), ),