1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-18 17:53:47 +01:00
This commit is contained in:
J. Nick Koston
2025-10-10 00:47:07 -10:00
parent 29e76718e1
commit 387bb763f3
5 changed files with 5 additions and 9 deletions

View File

@@ -285,6 +285,10 @@ def consume_connection_slots(
def validate_connection_slots(max_connections: int) -> None: def validate_connection_slots(max_connections: int) -> None:
"""Validate that BLE connection slots don't exceed the configured maximum.""" """Validate that BLE connection slots don't exceed the configured maximum."""
# Skip validation in testing mode to allow component grouping
if CORE.testing_mode:
return
ble_data = CORE.data.get(KEY_ESP32_BLE, {}) ble_data = CORE.data.get(KEY_ESP32_BLE, {})
used_slots = ble_data.get(KEY_USED_CONNECTION_SLOTS, []) used_slots = ble_data.get(KEY_USED_CONNECTION_SLOTS, [])
num_used = len(used_slots) num_used = len(used_slots)

View File

@@ -18,6 +18,7 @@ i2s_audio:
micro_wake_word: micro_wake_word:
id: mww_id id: mww_id
microphone: mic_id_external
on_wake_word_detected: on_wake_word_detected:
- voice_assistant.start: - voice_assistant.start:
wake_word: !lambda return wake_word; wake_word: !lambda return wake_word;

View File

@@ -1,4 +1 @@
packages:
ble: !include ../../test_build_components/common/ble/esp32-ard.yaml
<<: !include common.yaml <<: !include common.yaml

View File

@@ -1,4 +1 @@
packages:
ble: !include ../../test_build_components/common/ble/esp32-c3-idf.yaml
<<: !include common.yaml <<: !include common.yaml

View File

@@ -1,4 +1 @@
packages:
ble: !include ../../test_build_components/common/ble/esp32-idf.yaml
<<: !include common.yaml <<: !include common.yaml