mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 15:12:06 +00:00 
			
		
		
		
	Add some components to the new testing framework (R) (#6219)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
		
							
								
								
									
										35
									
								
								tests/components/rf_bridge/test.esp8266.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										35
									
								
								tests/components/rf_bridge/test.esp8266.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,35 @@ | ||||
| uart: | ||||
|   - id: uart_rf_bridge | ||||
|     tx_pin: 4 | ||||
|     rx_pin: 5 | ||||
|     baud_rate: 115200 | ||||
|  | ||||
| rf_bridge: | ||||
|   on_code_received: | ||||
|     - lambda: |- | ||||
|         uint32_t test; | ||||
|         test = data.sync; | ||||
|         test = data.low; | ||||
|         test = data.high; | ||||
|         test = data.code; | ||||
|     - rf_bridge.send_code: | ||||
|         sync: 0x1234 | ||||
|         low: 0x1234 | ||||
|         high: 0x1234 | ||||
|         code: 0x123456 | ||||
|     - rf_bridge.learn | ||||
|   on_advanced_code_received: | ||||
|     - lambda: |- | ||||
|         uint32_t test; | ||||
|         std::string test_code; | ||||
|         test = data.length; | ||||
|         test = data.protocol; | ||||
|         test_code = data.code; | ||||
|     - rf_bridge.start_advanced_sniffing: | ||||
|     - rf_bridge.stop_advanced_sniffing: | ||||
|     - rf_bridge.send_advanced_code: | ||||
|         length: 0x04 | ||||
|         protocol: 0x01 | ||||
|         code: "ABC123" | ||||
|     - rf_bridge.send_raw: | ||||
|         raw: "AAA5070008001000ABC12355" | ||||
		Reference in New Issue
	
	Block a user