mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 22:53:59 +00:00 
			
		
		
		
	[CI] Consolidate some tests (E) (#8191)
This commit is contained in:
		
							
								
								
									
										25
									
								
								tests/components/emc2101/common.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								tests/components/emc2101/common.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,25 @@ | ||||
| i2c: | ||||
|   - id: i2c_emc2101 | ||||
|     scl: ${scl_pin} | ||||
|     sda: ${sda_pin} | ||||
|  | ||||
| emc2101: | ||||
|   pwm: | ||||
|     resolution: 8 | ||||
|  | ||||
| output: | ||||
|   - platform: emc2101 | ||||
|     id: fan_duty_cycle | ||||
|  | ||||
| sensor: | ||||
|   - platform: emc2101 | ||||
|     internal_temperature: | ||||
|       id: internal_temperature_sensor | ||||
|       name: Internal Temperature Sensor | ||||
|     speed: | ||||
|       id: speed_sensor | ||||
|       name: Speed Sensor | ||||
|     duty_cycle: | ||||
|       id: duty_cycle_sensor | ||||
|       name: Duty Cycle Sensor | ||||
|     update_interval: 5s | ||||
| @@ -1,25 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_emc2101 | ||||
|     scl: 16 | ||||
|     sda: 17 | ||||
| substitutions: | ||||
|   scl_pin: GPIO16 | ||||
|   sda_pin: GPIO17 | ||||
|  | ||||
| emc2101: | ||||
|   pwm: | ||||
|     resolution: 8 | ||||
|  | ||||
| output: | ||||
|   - platform: emc2101 | ||||
|     id: fan_duty_cycle | ||||
|  | ||||
| sensor: | ||||
|   - platform: emc2101 | ||||
|     internal_temperature: | ||||
|       id: internal_temperature_sensor | ||||
|       name: Internal Temperature Sensor | ||||
|     speed: | ||||
|       id: speed_sensor | ||||
|       name: Speed Sensor | ||||
|     duty_cycle: | ||||
|       id: duty_cycle_sensor | ||||
|       name: Duty Cycle Sensor | ||||
|     update_interval: 5s | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,25 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_emc2101 | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| emc2101: | ||||
|   pwm: | ||||
|     resolution: 8 | ||||
|  | ||||
| output: | ||||
|   - platform: emc2101 | ||||
|     id: fan_duty_cycle | ||||
|  | ||||
| sensor: | ||||
|   - platform: emc2101 | ||||
|     internal_temperature: | ||||
|       id: internal_temperature_sensor | ||||
|       name: Internal Temperature Sensor | ||||
|     speed: | ||||
|       id: speed_sensor | ||||
|       name: Speed Sensor | ||||
|     duty_cycle: | ||||
|       id: duty_cycle_sensor | ||||
|       name: Duty Cycle Sensor | ||||
|     update_interval: 5s | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,25 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_emc2101 | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| emc2101: | ||||
|   pwm: | ||||
|     resolution: 8 | ||||
|  | ||||
| output: | ||||
|   - platform: emc2101 | ||||
|     id: fan_duty_cycle | ||||
|  | ||||
| sensor: | ||||
|   - platform: emc2101 | ||||
|     internal_temperature: | ||||
|       id: internal_temperature_sensor | ||||
|       name: Internal Temperature Sensor | ||||
|     speed: | ||||
|       id: speed_sensor | ||||
|       name: Speed Sensor | ||||
|     duty_cycle: | ||||
|       id: duty_cycle_sensor | ||||
|       name: Duty Cycle Sensor | ||||
|     update_interval: 5s | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,25 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_emc2101 | ||||
|     scl: 16 | ||||
|     sda: 17 | ||||
| substitutions: | ||||
|   scl_pin: GPIO16 | ||||
|   sda_pin: GPIO17 | ||||
|  | ||||
| emc2101: | ||||
|   pwm: | ||||
|     resolution: 8 | ||||
|  | ||||
| output: | ||||
|   - platform: emc2101 | ||||
|     id: fan_duty_cycle | ||||
|  | ||||
| sensor: | ||||
|   - platform: emc2101 | ||||
|     internal_temperature: | ||||
|       id: internal_temperature_sensor | ||||
|       name: Internal Temperature Sensor | ||||
|     speed: | ||||
|       id: speed_sensor | ||||
|       name: Speed Sensor | ||||
|     duty_cycle: | ||||
|       id: duty_cycle_sensor | ||||
|       name: Duty Cycle Sensor | ||||
|     update_interval: 5s | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,25 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_emc2101 | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| emc2101: | ||||
|   pwm: | ||||
|     resolution: 8 | ||||
|  | ||||
| output: | ||||
|   - platform: emc2101 | ||||
|     id: fan_duty_cycle | ||||
|  | ||||
| sensor: | ||||
|   - platform: emc2101 | ||||
|     internal_temperature: | ||||
|       id: internal_temperature_sensor | ||||
|       name: Internal Temperature Sensor | ||||
|     speed: | ||||
|       id: speed_sensor | ||||
|       name: Speed Sensor | ||||
|     duty_cycle: | ||||
|       id: duty_cycle_sensor | ||||
|       name: Duty Cycle Sensor | ||||
|     update_interval: 5s | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,25 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_emc2101 | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| emc2101: | ||||
|   pwm: | ||||
|     resolution: 8 | ||||
|  | ||||
| output: | ||||
|   - platform: emc2101 | ||||
|     id: fan_duty_cycle | ||||
|  | ||||
| sensor: | ||||
|   - platform: emc2101 | ||||
|     internal_temperature: | ||||
|       id: internal_temperature_sensor | ||||
|       name: Internal Temperature Sensor | ||||
|     speed: | ||||
|       id: speed_sensor | ||||
|       name: Speed Sensor | ||||
|     duty_cycle: | ||||
|       id: duty_cycle_sensor | ||||
|       name: Duty Cycle Sensor | ||||
|     update_interval: 5s | ||||
| <<: !include common.yaml | ||||
|   | ||||
		Reference in New Issue
	
	Block a user