mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 22:53:59 +00:00 
			
		
		
		
	[CI] Consolidate some tests (N, O, P) (#8204)
This commit is contained in:
		
							
								
								
									
										34
									
								
								tests/components/pmsx003/common.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										34
									
								
								tests/components/pmsx003/common.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,34 @@ | ||||
| uart: | ||||
|   - id: uart_pmsx003 | ||||
|     tx_pin: ${tx_pin} | ||||
|     rx_pin: ${rx_pin} | ||||
|     baud_rate: 9600 | ||||
|  | ||||
| sensor: | ||||
|   - platform: pmsx003 | ||||
|     type: PMSX003 | ||||
|     pm_1_0: | ||||
|       name: PM 1.0 Concentration | ||||
|     pm_2_5: | ||||
|       name: PM 2.5 Concentration | ||||
|     pm_10_0: | ||||
|       name: PM 10.0 Concentration | ||||
|     pm_1_0_std: | ||||
|       name: PM 1.0 Standard Atmospher Concentration | ||||
|     pm_2_5_std: | ||||
|       name: PM 2.5 Standard Atmospher Concentration | ||||
|     pm_10_0_std: | ||||
|       name: PM 10.0 Standard Atmospher Concentration | ||||
|     pm_0_3um: | ||||
|       name: Particulate Count >0.3um | ||||
|     pm_0_5um: | ||||
|       name: Particulate Count >0.5um | ||||
|     pm_1_0um: | ||||
|       name: Particulate Count >1.0um | ||||
|     pm_2_5um: | ||||
|       name: Particulate Count >2.5um | ||||
|     pm_5_0um: | ||||
|       name: Particulate Count >5.0um | ||||
|     pm_10_0um: | ||||
|       name: Particulate Count >10.0um | ||||
|     update_interval: 30s | ||||
| @@ -1,34 +1,5 @@ | ||||
| uart: | ||||
|   - id: uart_pmsx003 | ||||
|     tx_pin: 17 | ||||
|     rx_pin: 16 | ||||
|     baud_rate: 9600 | ||||
| substitutions: | ||||
|   tx_pin: GPIO17 | ||||
|   rx_pin: GPIO16 | ||||
|  | ||||
| sensor: | ||||
|   - platform: pmsx003 | ||||
|     type: PMSX003 | ||||
|     pm_1_0: | ||||
|       name: PM 1.0 Concentration | ||||
|     pm_2_5: | ||||
|       name: PM 2.5 Concentration | ||||
|     pm_10_0: | ||||
|       name: PM 10.0 Concentration | ||||
|     pm_1_0_std: | ||||
|       name: PM 1.0 Standard Atmospher Concentration | ||||
|     pm_2_5_std: | ||||
|       name: PM 2.5 Standard Atmospher Concentration | ||||
|     pm_10_0_std: | ||||
|       name: PM 10.0 Standard Atmospher Concentration | ||||
|     pm_0_3um: | ||||
|       name: Particulate Count >0.3um | ||||
|     pm_0_5um: | ||||
|       name: Particulate Count >0.5um | ||||
|     pm_1_0um: | ||||
|       name: Particulate Count >1.0um | ||||
|     pm_2_5um: | ||||
|       name: Particulate Count >2.5um | ||||
|     pm_5_0um: | ||||
|       name: Particulate Count >5.0um | ||||
|     pm_10_0um: | ||||
|       name: Particulate Count >10.0um | ||||
|     update_interval: 30s | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,34 +1,5 @@ | ||||
| uart: | ||||
|   - id: uart_pmsx003 | ||||
|     tx_pin: 4 | ||||
|     rx_pin: 5 | ||||
|     baud_rate: 9600 | ||||
| substitutions: | ||||
|   tx_pin: GPIO4 | ||||
|   rx_pin: GPIO5 | ||||
|  | ||||
| sensor: | ||||
|   - platform: pmsx003 | ||||
|     type: PMSX003 | ||||
|     pm_1_0: | ||||
|       name: PM 1.0 Concentration | ||||
|     pm_2_5: | ||||
|       name: PM 2.5 Concentration | ||||
|     pm_10_0: | ||||
|       name: PM 10.0 Concentration | ||||
|     pm_1_0_std: | ||||
|       name: PM 1.0 Standard Atmospher Concentration | ||||
|     pm_2_5_std: | ||||
|       name: PM 2.5 Standard Atmospher Concentration | ||||
|     pm_10_0_std: | ||||
|       name: PM 10.0 Standard Atmospher Concentration | ||||
|     pm_0_3um: | ||||
|       name: Particulate Count >0.3um | ||||
|     pm_0_5um: | ||||
|       name: Particulate Count >0.5um | ||||
|     pm_1_0um: | ||||
|       name: Particulate Count >1.0um | ||||
|     pm_2_5um: | ||||
|       name: Particulate Count >2.5um | ||||
|     pm_5_0um: | ||||
|       name: Particulate Count >5.0um | ||||
|     pm_10_0um: | ||||
|       name: Particulate Count >10.0um | ||||
|     update_interval: 30s | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,34 +1,5 @@ | ||||
| uart: | ||||
|   - id: uart_pmsx003 | ||||
|     tx_pin: 4 | ||||
|     rx_pin: 5 | ||||
|     baud_rate: 9600 | ||||
| substitutions: | ||||
|   tx_pin: GPIO4 | ||||
|   rx_pin: GPIO5 | ||||
|  | ||||
| sensor: | ||||
|   - platform: pmsx003 | ||||
|     type: PMSX003 | ||||
|     pm_1_0: | ||||
|       name: PM 1.0 Concentration | ||||
|     pm_2_5: | ||||
|       name: PM 2.5 Concentration | ||||
|     pm_10_0: | ||||
|       name: PM 10.0 Concentration | ||||
|     pm_1_0_std: | ||||
|       name: PM 1.0 Standard Atmospher Concentration | ||||
|     pm_2_5_std: | ||||
|       name: PM 2.5 Standard Atmospher Concentration | ||||
|     pm_10_0_std: | ||||
|       name: PM 10.0 Standard Atmospher Concentration | ||||
|     pm_0_3um: | ||||
|       name: Particulate Count >0.3um | ||||
|     pm_0_5um: | ||||
|       name: Particulate Count >0.5um | ||||
|     pm_1_0um: | ||||
|       name: Particulate Count >1.0um | ||||
|     pm_2_5um: | ||||
|       name: Particulate Count >2.5um | ||||
|     pm_5_0um: | ||||
|       name: Particulate Count >5.0um | ||||
|     pm_10_0um: | ||||
|       name: Particulate Count >10.0um | ||||
|     update_interval: 30s | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,34 +1,5 @@ | ||||
| uart: | ||||
|   - id: uart_pmsx003 | ||||
|     tx_pin: 17 | ||||
|     rx_pin: 16 | ||||
|     baud_rate: 9600 | ||||
| substitutions: | ||||
|   tx_pin: GPIO17 | ||||
|   rx_pin: GPIO16 | ||||
|  | ||||
| sensor: | ||||
|   - platform: pmsx003 | ||||
|     type: PMSX003 | ||||
|     pm_1_0: | ||||
|       name: PM 1.0 Concentration | ||||
|     pm_2_5: | ||||
|       name: PM 2.5 Concentration | ||||
|     pm_10_0: | ||||
|       name: PM 10.0 Concentration | ||||
|     pm_1_0_std: | ||||
|       name: PM 1.0 Standard Atmospher Concentration | ||||
|     pm_2_5_std: | ||||
|       name: PM 2.5 Standard Atmospher Concentration | ||||
|     pm_10_0_std: | ||||
|       name: PM 10.0 Standard Atmospher Concentration | ||||
|     pm_0_3um: | ||||
|       name: Particulate Count >0.3um | ||||
|     pm_0_5um: | ||||
|       name: Particulate Count >0.5um | ||||
|     pm_1_0um: | ||||
|       name: Particulate Count >1.0um | ||||
|     pm_2_5um: | ||||
|       name: Particulate Count >2.5um | ||||
|     pm_5_0um: | ||||
|       name: Particulate Count >5.0um | ||||
|     pm_10_0um: | ||||
|       name: Particulate Count >10.0um | ||||
|     update_interval: 30s | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,34 +1,5 @@ | ||||
| uart: | ||||
|   - id: uart_pmsx003 | ||||
|     tx_pin: 4 | ||||
|     rx_pin: 5 | ||||
|     baud_rate: 9600 | ||||
| substitutions: | ||||
|   tx_pin: GPIO4 | ||||
|   rx_pin: GPIO5 | ||||
|  | ||||
| sensor: | ||||
|   - platform: pmsx003 | ||||
|     type: PMSX003 | ||||
|     pm_1_0: | ||||
|       name: PM 1.0 Concentration | ||||
|     pm_2_5: | ||||
|       name: PM 2.5 Concentration | ||||
|     pm_10_0: | ||||
|       name: PM 10.0 Concentration | ||||
|     pm_1_0_std: | ||||
|       name: PM 1.0 Standard Atmospher Concentration | ||||
|     pm_2_5_std: | ||||
|       name: PM 2.5 Standard Atmospher Concentration | ||||
|     pm_10_0_std: | ||||
|       name: PM 10.0 Standard Atmospher Concentration | ||||
|     pm_0_3um: | ||||
|       name: Particulate Count >0.3um | ||||
|     pm_0_5um: | ||||
|       name: Particulate Count >0.5um | ||||
|     pm_1_0um: | ||||
|       name: Particulate Count >1.0um | ||||
|     pm_2_5um: | ||||
|       name: Particulate Count >2.5um | ||||
|     pm_5_0um: | ||||
|       name: Particulate Count >5.0um | ||||
|     pm_10_0um: | ||||
|       name: Particulate Count >10.0um | ||||
|     update_interval: 30s | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,34 +1,5 @@ | ||||
| uart: | ||||
|   - id: uart_pmsx003 | ||||
|     tx_pin: 4 | ||||
|     rx_pin: 5 | ||||
|     baud_rate: 9600 | ||||
| substitutions: | ||||
|   tx_pin: GPIO4 | ||||
|   rx_pin: GPIO5 | ||||
|  | ||||
| sensor: | ||||
|   - platform: pmsx003 | ||||
|     type: PMSX003 | ||||
|     pm_1_0: | ||||
|       name: PM 1.0 Concentration | ||||
|     pm_2_5: | ||||
|       name: PM 2.5 Concentration | ||||
|     pm_10_0: | ||||
|       name: PM 10.0 Concentration | ||||
|     pm_1_0_std: | ||||
|       name: PM 1.0 Standard Atmospher Concentration | ||||
|     pm_2_5_std: | ||||
|       name: PM 2.5 Standard Atmospher Concentration | ||||
|     pm_10_0_std: | ||||
|       name: PM 10.0 Standard Atmospher Concentration | ||||
|     pm_0_3um: | ||||
|       name: Particulate Count >0.3um | ||||
|     pm_0_5um: | ||||
|       name: Particulate Count >0.5um | ||||
|     pm_1_0um: | ||||
|       name: Particulate Count >1.0um | ||||
|     pm_2_5um: | ||||
|       name: Particulate Count >2.5um | ||||
|     pm_5_0um: | ||||
|       name: Particulate Count >5.0um | ||||
|     pm_10_0um: | ||||
|       name: Particulate Count >10.0um | ||||
|     update_interval: 30s | ||||
| <<: !include common.yaml | ||||
|   | ||||
		Reference in New Issue
	
	Block a user