[tests] Fix ID collision between bl0940 and nau7802 component tests (#11739)
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
button:
|
||||
- platform: bl0940
|
||||
bl0940_id: test_id
|
||||
bl0940_id: bl0940_test_id
|
||||
name: Cal Reset
|
||||
|
||||
sensor:
|
||||
- platform: bl0940
|
||||
id: test_id
|
||||
id: bl0940_test_id
|
||||
voltage:
|
||||
name: BL0940 Voltage
|
||||
current:
|
||||
@@ -22,7 +22,7 @@ sensor:
|
||||
number:
|
||||
- platform: bl0940
|
||||
id: bl0940_number_id
|
||||
bl0940_id: test_id
|
||||
bl0940_id: bl0940_test_id
|
||||
current_calibration:
|
||||
name: Cal Current
|
||||
min_value: -5
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
sensor:
|
||||
- platform: nau7802
|
||||
i2c_id: i2c_bus
|
||||
id: test_id
|
||||
id: nau7802_test_id
|
||||
name: weight
|
||||
gain: 32
|
||||
ldo_voltage: "3.0v"
|
||||
samples_per_second: 10
|
||||
on_value:
|
||||
then:
|
||||
- nau7802.calibrate_external_offset: test_id
|
||||
- nau7802.calibrate_internal_offset: test_id
|
||||
- nau7802.calibrate_gain: test_id
|
||||
- nau7802.calibrate_external_offset: nau7802_test_id
|
||||
- nau7802.calibrate_internal_offset: nau7802_test_id
|
||||
- nau7802.calibrate_gain: nau7802_test_id
|
||||
|
||||
Reference in New Issue
Block a user