mirror of
https://github.com/esphome/esphome.git
synced 2025-10-30 14:43:51 +00:00
[CI] Consolidate some tests (H) (#8198)
This commit is contained in:
16
tests/components/hm3301/common.yaml
Normal file
16
tests/components/hm3301/common.yaml
Normal file
@@ -0,0 +1,16 @@
|
||||
i2c:
|
||||
- id: i2c_hm3301
|
||||
scl: ${scl_pin}
|
||||
sda: ${sda_pin}
|
||||
|
||||
sensor:
|
||||
- platform: hm3301
|
||||
pm_1_0:
|
||||
name: PM1.0
|
||||
pm_2_5:
|
||||
name: PM2.5
|
||||
pm_10_0:
|
||||
name: PM10.0
|
||||
aqi:
|
||||
name: AQI
|
||||
calculation_type: CAQI
|
||||
@@ -1,16 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_hm3301
|
||||
scl: 16
|
||||
sda: 17
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
|
||||
sensor:
|
||||
- platform: hm3301
|
||||
pm_1_0:
|
||||
name: PM1.0
|
||||
pm_2_5:
|
||||
name: PM2.5
|
||||
pm_10_0:
|
||||
name: PM10.0
|
||||
aqi:
|
||||
name: AQI
|
||||
calculation_type: CAQI
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,16 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_hm3301
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: hm3301
|
||||
pm_1_0:
|
||||
name: PM1.0
|
||||
pm_2_5:
|
||||
name: PM2.5
|
||||
pm_10_0:
|
||||
name: PM10.0
|
||||
aqi:
|
||||
name: AQI
|
||||
calculation_type: CAQI
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,16 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_hm3301
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: hm3301
|
||||
pm_1_0:
|
||||
name: PM1.0
|
||||
pm_2_5:
|
||||
name: PM2.5
|
||||
pm_10_0:
|
||||
name: PM10.0
|
||||
aqi:
|
||||
name: AQI
|
||||
calculation_type: CAQI
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,16 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_hm3301
|
||||
scl: 16
|
||||
sda: 17
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
|
||||
sensor:
|
||||
- platform: hm3301
|
||||
pm_1_0:
|
||||
name: PM1.0
|
||||
pm_2_5:
|
||||
name: PM2.5
|
||||
pm_10_0:
|
||||
name: PM10.0
|
||||
aqi:
|
||||
name: AQI
|
||||
calculation_type: CAQI
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,16 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_hm3301
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: hm3301
|
||||
pm_1_0:
|
||||
name: PM1.0
|
||||
pm_2_5:
|
||||
name: PM2.5
|
||||
pm_10_0:
|
||||
name: PM10.0
|
||||
aqi:
|
||||
name: AQI
|
||||
calculation_type: CAQI
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,16 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_hm3301
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: hm3301
|
||||
pm_1_0:
|
||||
name: PM1.0
|
||||
pm_2_5:
|
||||
name: PM2.5
|
||||
pm_10_0:
|
||||
name: PM10.0
|
||||
aqi:
|
||||
name: AQI
|
||||
calculation_type: CAQI
|
||||
<<: !include common.yaml
|
||||
|
||||
Reference in New Issue
Block a user