mirror of
https://github.com/esphome/esphome.git
synced 2025-09-02 03:12:20 +01:00
'uart' and 'improv_serial' need to understand non-UART logger configurations (#6998)
This commit is contained in:
8
tests/components/logger/common-usb_cdc.yaml
Normal file
8
tests/components/logger/common-usb_cdc.yaml
Normal file
@@ -0,0 +1,8 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- logger.log: Hello world
|
||||
|
||||
logger:
|
||||
level: DEBUG
|
||||
hardware_uart: USB_CDC
|
8
tests/components/logger/common-usb_serial_jtag.yaml
Normal file
8
tests/components/logger/common-usb_serial_jtag.yaml
Normal file
@@ -0,0 +1,8 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- logger.log: Hello world
|
||||
|
||||
logger:
|
||||
level: DEBUG
|
||||
hardware_uart: USB_SERIAL_JTAG
|
1
tests/components/logger/test-usb_cdc.esp32-c3-ard.yaml
Normal file
1
tests/components/logger/test-usb_cdc.esp32-c3-ard.yaml
Normal file
@@ -0,0 +1 @@
|
||||
<<: !include common-usb_cdc.yaml
|
1
tests/components/logger/test-usb_cdc.esp32-s2-ard.yaml
Normal file
1
tests/components/logger/test-usb_cdc.esp32-s2-ard.yaml
Normal file
@@ -0,0 +1 @@
|
||||
<<: !include common-usb_cdc.yaml
|
1
tests/components/logger/test-usb_cdc.esp32-s2-idf.yaml
Normal file
1
tests/components/logger/test-usb_cdc.esp32-s2-idf.yaml
Normal file
@@ -0,0 +1 @@
|
||||
<<: !include common-usb_cdc.yaml
|
1
tests/components/logger/test-usb_cdc.esp32-s3-ard.yaml
Normal file
1
tests/components/logger/test-usb_cdc.esp32-s3-ard.yaml
Normal file
@@ -0,0 +1 @@
|
||||
<<: !include common-usb_cdc.yaml
|
@@ -0,0 +1 @@
|
||||
<<: !include common-usb_serial_jtag.yaml
|
@@ -0,0 +1 @@
|
||||
<<: !include common-usb_serial_jtag.yaml
|
@@ -1 +1 @@
|
||||
<<: !include common.yaml
|
||||
<<: !include common-default_uart.yaml
|
||||
|
@@ -1 +1 @@
|
||||
<<: !include common.yaml
|
||||
<<: !include common-default_uart.yaml
|
||||
|
@@ -1 +1 @@
|
||||
<<: !include common.yaml
|
||||
<<: !include common-default_uart.yaml
|
||||
|
@@ -1 +1 @@
|
||||
<<: !include common.yaml
|
||||
<<: !include common-default_uart.yaml
|
||||
|
@@ -1 +1 @@
|
||||
<<: !include common.yaml
|
||||
<<: !include common-default_uart.yaml
|
||||
|
@@ -1 +1 @@
|
||||
<<: !include common.yaml
|
||||
<<: !include common-default_uart.yaml
|
||||
|
@@ -0,0 +1,30 @@
|
||||
<<: !include ../logger/common-usb_cdc.yaml
|
||||
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- uart.write:
|
||||
id: uart_1
|
||||
data: 'Hello World'
|
||||
- uart.write:
|
||||
id: uart_1
|
||||
data: [0x00, 0x20, 0x42]
|
||||
|
||||
uart:
|
||||
- id: uart_1
|
||||
tx_pin: 4
|
||||
rx_pin: 5
|
||||
baud_rate: 9600
|
||||
data_bits: 8
|
||||
rx_buffer_size: 512
|
||||
parity: EVEN
|
||||
stop_bits: 2
|
||||
|
||||
- id: uart_2
|
||||
tx_pin: 6
|
||||
rx_pin: 7
|
||||
baud_rate: 9600
|
||||
data_bits: 8
|
||||
rx_buffer_size: 512
|
||||
parity: EVEN
|
||||
stop_bits: 2
|
@@ -0,0 +1,30 @@
|
||||
<<: !include ../logger/common-usb_cdc.yaml
|
||||
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- uart.write:
|
||||
id: uart_1
|
||||
data: 'Hello World'
|
||||
- uart.write:
|
||||
id: uart_1
|
||||
data: [0x00, 0x20, 0x42]
|
||||
|
||||
uart:
|
||||
- id: uart_1
|
||||
tx_pin: 4
|
||||
rx_pin: 5
|
||||
baud_rate: 9600
|
||||
data_bits: 8
|
||||
rx_buffer_size: 512
|
||||
parity: EVEN
|
||||
stop_bits: 2
|
||||
|
||||
- id: uart_2
|
||||
tx_pin: 6
|
||||
rx_pin: 7
|
||||
baud_rate: 9600
|
||||
data_bits: 8
|
||||
rx_buffer_size: 512
|
||||
parity: EVEN
|
||||
stop_bits: 2
|
@@ -0,0 +1,30 @@
|
||||
<<: !include ../logger/common-usb_cdc.yaml
|
||||
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- uart.write:
|
||||
id: uart_1
|
||||
data: 'Hello World'
|
||||
- uart.write:
|
||||
id: uart_1
|
||||
data: [0x00, 0x20, 0x42]
|
||||
|
||||
uart:
|
||||
- id: uart_1
|
||||
tx_pin: 4
|
||||
rx_pin: 5
|
||||
baud_rate: 9600
|
||||
data_bits: 8
|
||||
rx_buffer_size: 512
|
||||
parity: EVEN
|
||||
stop_bits: 2
|
||||
|
||||
- id: uart_2
|
||||
tx_pin: 6
|
||||
rx_pin: 7
|
||||
baud_rate: 9600
|
||||
data_bits: 8
|
||||
rx_buffer_size: 512
|
||||
parity: EVEN
|
||||
stop_bits: 2
|
@@ -0,0 +1,30 @@
|
||||
<<: !include ../logger/common-usb_cdc.yaml
|
||||
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- uart.write:
|
||||
id: uart_1
|
||||
data: 'Hello World'
|
||||
- uart.write:
|
||||
id: uart_1
|
||||
data: [0x00, 0x20, 0x42]
|
||||
|
||||
uart:
|
||||
- id: uart_1
|
||||
tx_pin: 4
|
||||
rx_pin: 5
|
||||
baud_rate: 9600
|
||||
data_bits: 8
|
||||
rx_buffer_size: 512
|
||||
parity: EVEN
|
||||
stop_bits: 2
|
||||
|
||||
- id: uart_2
|
||||
tx_pin: 6
|
||||
rx_pin: 7
|
||||
baud_rate: 9600
|
||||
data_bits: 8
|
||||
rx_buffer_size: 512
|
||||
parity: EVEN
|
||||
stop_bits: 2
|
@@ -0,0 +1,30 @@
|
||||
<<: !include ../logger/common-usb_serial_jtag.yaml
|
||||
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- uart.write:
|
||||
id: uart_1
|
||||
data: 'Hello World'
|
||||
- uart.write:
|
||||
id: uart_1
|
||||
data: [0x00, 0x20, 0x42]
|
||||
|
||||
uart:
|
||||
- id: uart_1
|
||||
tx_pin: 4
|
||||
rx_pin: 5
|
||||
baud_rate: 9600
|
||||
data_bits: 8
|
||||
rx_buffer_size: 512
|
||||
parity: EVEN
|
||||
stop_bits: 2
|
||||
|
||||
- id: uart_2
|
||||
tx_pin: 6
|
||||
rx_pin: 7
|
||||
baud_rate: 9600
|
||||
data_bits: 8
|
||||
rx_buffer_size: 512
|
||||
parity: EVEN
|
||||
stop_bits: 2
|
@@ -0,0 +1,30 @@
|
||||
<<: !include ../logger/common-usb_serial_jtag.yaml
|
||||
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- uart.write:
|
||||
id: uart_1
|
||||
data: 'Hello World'
|
||||
- uart.write:
|
||||
id: uart_1
|
||||
data: [0x00, 0x20, 0x42]
|
||||
|
||||
uart:
|
||||
- id: uart_1
|
||||
tx_pin: 4
|
||||
rx_pin: 5
|
||||
baud_rate: 9600
|
||||
data_bits: 8
|
||||
rx_buffer_size: 512
|
||||
parity: EVEN
|
||||
stop_bits: 2
|
||||
|
||||
- id: uart_2
|
||||
tx_pin: 6
|
||||
rx_pin: 7
|
||||
baud_rate: 9600
|
||||
data_bits: 8
|
||||
rx_buffer_size: 512
|
||||
parity: EVEN
|
||||
stop_bits: 2
|
Reference in New Issue
Block a user