mirror of
https://github.com/esphome/esphome.git
synced 2025-03-14 06:38:17 +00:00
Adding tests
This commit is contained in:
parent
a2c1a709f3
commit
a15cccba35
@ -306,7 +306,7 @@ bool DallasPio::ds2406_get_state_(uint8_t &state, bool use_crc = false) {
|
||||
ESP_LOGD(TAG,
|
||||
"Got %s pio_flipflop=%d, pio_sensed_level=%d, "
|
||||
"pio_activity_latch=%d",
|
||||
str_pio, pio_sensed_level, pio_activity_latch);
|
||||
str_pio, pio_flipflop, pio_sensed_level, pio_activity_latch);
|
||||
if (pio_flipflop == 0) {
|
||||
ESP_LOGW(TAG, "DallasPio DS2406 PIO flipflop must be 1 to read %s", str_pio);
|
||||
this->status_set_warning();
|
||||
|
35
tests/components/dallas_pio/common.yaml
Normal file
35
tests/components/dallas_pio/common.yaml
Normal file
@ -0,0 +1,35 @@
|
||||
one_wire:
|
||||
- platform: gpio
|
||||
pin: GPIO0
|
||||
id: OnWireBus1
|
||||
|
||||
dallas_pio:
|
||||
- name: DS2413 IC1
|
||||
id: ds2413_ic1
|
||||
reference: DS2413
|
||||
address: 0xfe10055073e122ba
|
||||
one_wire_id: OnWireBus1
|
||||
|
||||
binary_sensor:
|
||||
- platform: dallas_pio
|
||||
name: DS2413 Binary Sensor
|
||||
dallas_pio_id: ds2413_ic1
|
||||
id: ds2413_binary_sensor
|
||||
pin:
|
||||
number: PIOA
|
||||
mode:
|
||||
input: true
|
||||
inverted: true
|
||||
update_interval: 1s
|
||||
|
||||
switch:
|
||||
- platform: dallas_pio
|
||||
name: DS2413 Switch
|
||||
dallas_pio_id: ds2413_ic1
|
||||
id: ds2413_switch
|
||||
pin:
|
||||
number: PIOB
|
||||
mode:
|
||||
output: true
|
||||
inverted: false
|
||||
inverted: false
|
1
tests/components/dallas_pio/test.esp32-ard.yaml
Normal file
1
tests/components/dallas_pio/test.esp32-ard.yaml
Normal file
@ -0,0 +1 @@
|
||||
<<: !include common.yaml
|
1
tests/components/dallas_pio/test.esp32-c3-ard.yaml
Normal file
1
tests/components/dallas_pio/test.esp32-c3-ard.yaml
Normal file
@ -0,0 +1 @@
|
||||
<<: !include common.yaml
|
1
tests/components/dallas_pio/test.esp32-c3-idf.yaml
Normal file
1
tests/components/dallas_pio/test.esp32-c3-idf.yaml
Normal file
@ -0,0 +1 @@
|
||||
<<: !include common.yaml
|
1
tests/components/dallas_pio/test.esp32-idf.yaml
Normal file
1
tests/components/dallas_pio/test.esp32-idf.yaml
Normal file
@ -0,0 +1 @@
|
||||
<<: !include common.yaml
|
1
tests/components/dallas_pio/test.esp8266-ard.yaml
Normal file
1
tests/components/dallas_pio/test.esp8266-ard.yaml
Normal file
@ -0,0 +1 @@
|
||||
<<: !include common.yaml
|
1
tests/components/dallas_pio/test.rp2040-ard.yaml
Normal file
1
tests/components/dallas_pio/test.rp2040-ard.yaml
Normal file
@ -0,0 +1 @@
|
||||
<<: !include common.yaml
|
Loading…
x
Reference in New Issue
Block a user