mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 15:12:06 +00:00 
			
		
		
		
	Group component tests to reduce CI time (#11134)
This commit is contained in:
		| @@ -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 | ||||
|             } | ||||
|  | ||||
|   | ||||
| @@ -2,4 +2,7 @@ substitutions: | ||||
|   tx_pin: GPIO4 | ||||
|   rx_pin: GPIO5 | ||||
|  | ||||
| packages: | ||||
|   uart: !include ../../test_build_components/common/uart/esp32-c3-idf.yaml | ||||
|  | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,5 +1,4 @@ | ||||
| substitutions: | ||||
|   tx_pin: GPIO17 | ||||
|   rx_pin: GPIO16 | ||||
| packages: | ||||
|   uart: !include ../../test_build_components/common/uart/esp32-idf.yaml | ||||
|  | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,5 +1,8 @@ | ||||
| substitutions: | ||||
|   tx_pin: GPIO4 | ||||
|   rx_pin: GPIO5 | ||||
|   tx_pin: GPIO0 | ||||
|   rx_pin: GPIO2 | ||||
|  | ||||
| packages: | ||||
|   uart: !include ../../test_build_components/common/uart/esp8266-ard.yaml | ||||
|  | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -2,4 +2,7 @@ substitutions: | ||||
|   tx_pin: GPIO4 | ||||
|   rx_pin: GPIO5 | ||||
|  | ||||
| packages: | ||||
|   uart: !include ../../test_build_components/common/uart/rp2040-ard.yaml | ||||
|  | ||||
| <<: !include common.yaml | ||||
|   | ||||
		Reference in New Issue
	
	Block a user