Skip to content

Commit

Permalink
Rename uart0 to uart_0
Browse files Browse the repository at this point in the history
This change is required by ESPHome 2023.4.0

See esphome/esphome#4446
  • Loading branch information
syssi committed Apr 20, 2023
1 parent 8765895 commit 5eaddbe
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ logger:
baud_rate: 0
uart:
id: uart0
id: uart_0
baud_rate: 2400
tx_pin: GPIO1
rx_pin: GPIO3
Expand Down
4 changes: 2 additions & 2 deletions esp32-example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ mqtt:
# api:

uart:
- id: uart0
- id: uart_0
baud_rate: 2400
tx_pin: ${tx_pin}
rx_pin: ${rx_pin}
Expand All @@ -51,7 +51,7 @@ uart:
# - lambda: UARTDebug::log_string(direction, bytes);

pipsolar:
uart_id: uart0
uart_id: uart_0
id: inverter0

sensor:
Expand Down
4 changes: 2 additions & 2 deletions esp8266-example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ mqtt:
# api:

uart:
id: uart0
id: uart_0
baud_rate: 2400
tx_pin: ${tx_pin}
rx_pin: ${rx_pin}
Expand All @@ -51,7 +51,7 @@ uart:
# - lambda: UARTDebug::log_string(direction, bytes);

pipsolar:
uart_id: uart0
uart_id: uart_0
id: inverter0

sensor:
Expand Down
2 changes: 1 addition & 1 deletion tests/esp8266-test-ping.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ api:
reboot_timeout: 0s

uart:
id: uart0
id: uart_0
baud_rate: 2400
tx_pin: ${tx_pin}
rx_pin: ${rx_pin}
Expand Down
2 changes: 1 addition & 1 deletion tests/esp8266-test-pong.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ api:
reboot_timeout: 0s

uart:
id: uart0
id: uart_0
baud_rate: 2400
tx_pin: ${tx_pin}
rx_pin: ${rx_pin}
Expand Down
2 changes: 1 addition & 1 deletion tests/esp8266-test-protocols.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ api:
reboot_timeout: 0s

uart:
id: uart0
id: uart_0
baud_rate: 2400
tx_pin: ${tx_pin}
rx_pin: ${rx_pin}
Expand Down

0 comments on commit 5eaddbe

Please sign in to comment.