mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 22:53:59 +00:00 
			
		
		
		
	[CI] Consolidate some tests (I, J) (#8200)
This commit is contained in:
		
							
								
								
									
										19
									
								
								tests/components/ina226/common.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								tests/components/ina226/common.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,19 @@ | ||||
| i2c: | ||||
|   - id: i2c_ina226 | ||||
|     scl: ${scl_pin} | ||||
|     sda: ${sda_pin} | ||||
|  | ||||
| sensor: | ||||
|   - platform: ina226 | ||||
|     address: 0x40 | ||||
|     shunt_resistance: 0.1 ohm | ||||
|     current: | ||||
|       name: INA226 Current | ||||
|     power: | ||||
|       name: INA226 Power | ||||
|     bus_voltage: | ||||
|       name: INA226 Bus Voltage | ||||
|     shunt_voltage: | ||||
|       name: INA226 Shunt Voltage | ||||
|     max_current: 3.2A | ||||
|     update_interval: 15s | ||||
| @@ -1,19 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_ina226 | ||||
|     scl: 16 | ||||
|     sda: 17 | ||||
| substitutions: | ||||
|   scl_pin: GPIO16 | ||||
|   sda_pin: GPIO17 | ||||
|  | ||||
| sensor: | ||||
|   - platform: ina226 | ||||
|     address: 0x40 | ||||
|     shunt_resistance: 0.1 ohm | ||||
|     current: | ||||
|       name: INA226 Current | ||||
|     power: | ||||
|       name: INA226 Power | ||||
|     bus_voltage: | ||||
|       name: INA226 Bus Voltage | ||||
|     shunt_voltage: | ||||
|       name: INA226 Shunt Voltage | ||||
|     max_current: 3.2A | ||||
|     update_interval: 15s | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,19 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_ina226 | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| sensor: | ||||
|   - platform: ina226 | ||||
|     address: 0x40 | ||||
|     shunt_resistance: 0.1 ohm | ||||
|     current: | ||||
|       name: INA226 Current | ||||
|     power: | ||||
|       name: INA226 Power | ||||
|     bus_voltage: | ||||
|       name: INA226 Bus Voltage | ||||
|     shunt_voltage: | ||||
|       name: INA226 Shunt Voltage | ||||
|     max_current: 3.2A | ||||
|     update_interval: 15s | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,19 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_ina226 | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| sensor: | ||||
|   - platform: ina226 | ||||
|     address: 0x40 | ||||
|     shunt_resistance: 0.1 ohm | ||||
|     current: | ||||
|       name: INA226 Current | ||||
|     power: | ||||
|       name: INA226 Power | ||||
|     bus_voltage: | ||||
|       name: INA226 Bus Voltage | ||||
|     shunt_voltage: | ||||
|       name: INA226 Shunt Voltage | ||||
|     max_current: 3.2A | ||||
|     update_interval: 15s | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,19 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_ina226 | ||||
|     scl: 16 | ||||
|     sda: 17 | ||||
| substitutions: | ||||
|   scl_pin: GPIO16 | ||||
|   sda_pin: GPIO17 | ||||
|  | ||||
| sensor: | ||||
|   - platform: ina226 | ||||
|     address: 0x40 | ||||
|     shunt_resistance: 0.1 ohm | ||||
|     current: | ||||
|       name: INA226 Current | ||||
|     power: | ||||
|       name: INA226 Power | ||||
|     bus_voltage: | ||||
|       name: INA226 Bus Voltage | ||||
|     shunt_voltage: | ||||
|       name: INA226 Shunt Voltage | ||||
|     max_current: 3.2A | ||||
|     update_interval: 15s | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,19 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_ina226 | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| sensor: | ||||
|   - platform: ina226 | ||||
|     address: 0x40 | ||||
|     shunt_resistance: 0.1 ohm | ||||
|     current: | ||||
|       name: INA226 Current | ||||
|     power: | ||||
|       name: INA226 Power | ||||
|     bus_voltage: | ||||
|       name: INA226 Bus Voltage | ||||
|     shunt_voltage: | ||||
|       name: INA226 Shunt Voltage | ||||
|     max_current: 3.2A | ||||
|     update_interval: 15s | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,19 +1,5 @@ | ||||
| i2c: | ||||
|   - id: i2c_ina226 | ||||
|     scl: 5 | ||||
|     sda: 4 | ||||
| substitutions: | ||||
|   scl_pin: GPIO5 | ||||
|   sda_pin: GPIO4 | ||||
|  | ||||
| sensor: | ||||
|   - platform: ina226 | ||||
|     address: 0x40 | ||||
|     shunt_resistance: 0.1 ohm | ||||
|     current: | ||||
|       name: INA226 Current | ||||
|     power: | ||||
|       name: INA226 Power | ||||
|     bus_voltage: | ||||
|       name: INA226 Bus Voltage | ||||
|     shunt_voltage: | ||||
|       name: INA226 Shunt Voltage | ||||
|     max_current: 3.2A | ||||
|     update_interval: 15s | ||||
| <<: !include common.yaml | ||||
|   | ||||
		Reference in New Issue
	
	Block a user