1
0
mirror of https://github.com/esphome/esphome.git synced 2026-02-08 00:31:58 +00:00

[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: button:
- platform: bl0940 - platform: bl0940
bl0940_id: test_id bl0940_id: bl0940_test_id
name: Cal Reset name: Cal Reset
sensor: sensor:
- platform: bl0940 - platform: bl0940
id: test_id id: bl0940_test_id
voltage: voltage:
name: BL0940 Voltage name: BL0940 Voltage
current: current:
@@ -22,7 +22,7 @@ sensor:
number: number:
- platform: bl0940 - platform: bl0940
id: bl0940_number_id id: bl0940_number_id
bl0940_id: test_id bl0940_id: bl0940_test_id
current_calibration: current_calibration:
name: Cal Current name: Cal Current
min_value: -5 min_value: -5

View File

@@ -1,13 +1,13 @@
sensor: sensor:
- platform: nau7802 - platform: nau7802
i2c_id: i2c_bus i2c_id: i2c_bus
id: test_id id: nau7802_test_id
name: weight name: weight
gain: 32 gain: 32
ldo_voltage: "3.0v" ldo_voltage: "3.0v"
samples_per_second: 10 samples_per_second: 10
on_value: on_value:
then: then:
- nau7802.calibrate_external_offset: test_id - nau7802.calibrate_external_offset: nau7802_test_id
- nau7802.calibrate_internal_offset: test_id - nau7802.calibrate_internal_offset: nau7802_test_id
- nau7802.calibrate_gain: test_id - nau7802.calibrate_gain: nau7802_test_id