mirror of
https://github.com/esphome/esphome.git
synced 2025-10-18 09:43:47 +01:00
merge
This commit is contained in:
@@ -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)
|
||||||
|
@@ -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;
|
||||||
|
@@ -1,4 +1 @@
|
|||||||
packages:
|
|
||||||
ble: !include ../../test_build_components/common/ble/esp32-ard.yaml
|
|
||||||
|
|
||||||
<<: !include common.yaml
|
<<: !include common.yaml
|
||||||
|
@@ -1,4 +1 @@
|
|||||||
packages:
|
|
||||||
ble: !include ../../test_build_components/common/ble/esp32-c3-idf.yaml
|
|
||||||
|
|
||||||
<<: !include common.yaml
|
<<: !include common.yaml
|
||||||
|
@@ -1,4 +1 @@
|
|||||||
packages:
|
|
||||||
ble: !include ../../test_build_components/common/ble/esp32-idf.yaml
|
|
||||||
|
|
||||||
<<: !include common.yaml
|
<<: !include common.yaml
|
||||||
|
Reference in New Issue
Block a user