1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-31 07:03:55 +00:00

Group component tests to reduce CI time (#11134)

This commit is contained in:
J. Nick Koston
2025-10-11 08:21:45 -10:00
committed by Jesse Hills
parent 132e949927
commit 2864bf1674
1808 changed files with 8564 additions and 5758 deletions

View File

@@ -1,9 +1,3 @@
uart:
- id: uart_ld2412
tx_pin: ${tx_pin}
rx_pin: ${rx_pin}
baud_rate: 9600
ld2412:
id: my_ld2412
@@ -123,13 +117,13 @@ select:
on_value:
- delay: 3s
- lambda: |-
id(uart_ld2412).flush();
id(uart_bus).flush();
uint32_t new_baud_rate = stoi(x);
ESP_LOGD("change_baud_rate", "Changing baud rate from %i to %i",id(uart_ld2412).get_baud_rate(), new_baud_rate);
if (id(uart_ld2412).get_baud_rate() != new_baud_rate) {
id(uart_ld2412).set_baud_rate(new_baud_rate);
ESP_LOGD("change_baud_rate", "Changing baud rate from %i to %i",id(uart_bus).get_baud_rate(), new_baud_rate);
if (id(uart_bus).get_baud_rate() != new_baud_rate) {
id(uart_bus).set_baud_rate(new_baud_rate);
#if defined(USE_ESP8266) || defined(USE_ESP32)
id(uart_ld2412).load_settings();
id(uart_bus).load_settings();
#endif
}