[tests] Fix ID collision between bl0940 and nau7802 component tests (#11739)

This commit is contained in:
J. Nick Koston
2025-11-05 13:17:34 -06:00
committed by GitHub
parent 00c0854323
commit aa5795c019
2 changed files with 7 additions and 7 deletions

View File

@@ -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

View File

@@ -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