mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 07:03:55 +00:00 
			
		
		
		
	[CI] Consolidate some tests (B) (#8185)
This commit is contained in:
		
							
								
								
									
										10
									
								
								tests/components/bh1750/common.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								tests/components/bh1750/common.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,10 @@ | ||||
| i2c: | ||||
|   - id: i2c_bh1750 | ||||
|     scl: ${scl_pin} | ||||
|     sda: ${sda_pin} | ||||
|  | ||||
| sensor: | ||||
|   - platform: bh1750 | ||||
|     name: Living Room Brightness | ||||
|     address: 0x23 | ||||
|     update_interval: 30s | ||||
| @@ -1,10 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_bh1750 | ||||
|     scl: 16 | ||||
|     sda: 17 | ||||
| substitutions: | ||||
|   scl_pin: GPIO22 | ||||
|   sda_pin: GPIO21 | ||||
|  | ||||
| sensor: | ||||
|   - platform: bh1750 | ||||
|     name: Living Room Brightness | ||||
|     address: 0x23 | ||||
|     update_interval: 30s | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,10 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_bh1750 | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| sensor: | ||||
|   - platform: bh1750 | ||||
|     name: Living Room Brightness | ||||
|     address: 0x23 | ||||
|     update_interval: 30s | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,10 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_bh1750 | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| sensor: | ||||
|   - platform: bh1750 | ||||
|     name: Living Room Brightness | ||||
|     address: 0x23 | ||||
|     update_interval: 30s | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,10 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_bh1750 | ||||
|     scl: 16 | ||||
|     sda: 17 | ||||
| substitutions: | ||||
|   scl_pin: GPIO22 | ||||
|   sda_pin: GPIO21 | ||||
|  | ||||
| sensor: | ||||
|   - platform: bh1750 | ||||
|     name: Living Room Brightness | ||||
|     address: 0x23 | ||||
|     update_interval: 30s | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,10 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_bh1750 | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| sensor: | ||||
|   - platform: bh1750 | ||||
|     name: Living Room Brightness | ||||
|     address: 0x23 | ||||
|     update_interval: 30s | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,10 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_bh1750 | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| sensor: | ||||
|   - platform: bh1750 | ||||
|     name: Living Room Brightness | ||||
|     address: 0x23 | ||||
|     update_interval: 30s | ||||
| <<: !include common.yaml | ||||
|   | ||||
		Reference in New Issue
	
	Block a user