Fix up component tests by adding rx_full_threshold for esp32s

Also narrow the requirement to just esp32 platforms, since that's all
that's implemented right now
This commit is contained in:
Bonne Eggleston 2025-01-20 22:16:37 -08:00
parent 53e05838ae
commit 60d065f83b
No known key found for this signature in database
37 changed files with 40 additions and 1 deletions

View File

@ -12,6 +12,7 @@ from esphome.const import (
CONF_ADDRESS,
CONF_DISABLE_CRC,
)
from esphome.core import CORE
from esphome import pins
DEPENDENCIES = ["uart"]
@ -53,7 +54,8 @@ CONFIG_SCHEMA = (
def validate_rx_full_threshold_uart(config):
uart.final_validate_device_schema("modbus", rx_full_threshold=1)(config)
if CORE.is_esp32:
uart.final_validate_device_schema("modbus", rx_full_threshold=1)(config)
FINAL_VALIDATE_SCHEMA = validate_rx_full_threshold_uart

View File

@ -3,6 +3,7 @@ uart:
tx_pin: 17
rx_pin: 16
baud_rate: 9600
rx_full_threshold: 1
modbus:
flow_control_pin: 13

View File

@ -3,6 +3,7 @@ uart:
tx_pin: 4
rx_pin: 5
baud_rate: 9600
rx_full_threshold: 1
modbus:
flow_control_pin: 3

View File

@ -3,6 +3,7 @@ uart:
tx_pin: 4
rx_pin: 5
baud_rate: 9600
rx_full_threshold: 1
modbus:
flow_control_pin: 3

View File

@ -3,6 +3,7 @@ uart:
tx_pin: 17
rx_pin: 16
baud_rate: 9600
rx_full_threshold: 1
modbus:
flow_control_pin: 13

View File

@ -3,6 +3,7 @@ uart:
tx_pin: 17
rx_pin: 16
baud_rate: 9600
rx_full_threshold: 1
modbus:
flow_control_pin: 3

View File

@ -3,6 +3,7 @@ uart:
tx_pin: 4
rx_pin: 5
baud_rate: 9600
rx_full_threshold: 1
modbus:
flow_control_pin: 3

View File

@ -3,6 +3,7 @@ uart:
tx_pin: 4
rx_pin: 5
baud_rate: 9600
rx_full_threshold: 1
modbus:
flow_control_pin: 3

View File

@ -3,6 +3,7 @@ uart:
tx_pin: 17
rx_pin: 16
baud_rate: 9600
rx_full_threshold: 1
modbus:
flow_control_pin: 3

View File

@ -3,6 +3,7 @@ uart:
tx_pin: 17
rx_pin: 16
baud_rate: 9600
rx_full_threshold: 1
modbus:
flow_control_pin: 13

View File

@ -3,6 +3,7 @@ uart:
tx_pin: 4
rx_pin: 5
baud_rate: 9600
rx_full_threshold: 1
modbus:
flow_control_pin: 3

View File

@ -3,6 +3,7 @@ uart:
tx_pin: 4
rx_pin: 5
baud_rate: 9600
rx_full_threshold: 1
modbus:
flow_control_pin: 3

View File

@ -3,6 +3,7 @@ uart:
tx_pin: 17
rx_pin: 16
baud_rate: 9600
rx_full_threshold: 1
modbus:
flow_control_pin: 13

View File

@ -3,6 +3,7 @@ uart:
tx_pin: 17
rx_pin: 16
baud_rate: 9600
rx_full_threshold: 1
modbus:
id: mod_bus1

View File

@ -3,6 +3,7 @@ uart:
tx_pin: 4
rx_pin: 5
baud_rate: 9600
rx_full_threshold: 1
modbus:
id: mod_bus1

View File

@ -3,6 +3,7 @@ uart:
tx_pin: 4
rx_pin: 5
baud_rate: 9600
rx_full_threshold: 1
modbus:
id: mod_bus1

View File

@ -3,6 +3,7 @@ uart:
tx_pin: 17
rx_pin: 16
baud_rate: 9600
rx_full_threshold: 1
modbus:
id: mod_bus1

View File

@ -3,10 +3,12 @@ uart:
tx_pin: 17
rx_pin: 16
baud_rate: 9600
rx_full_threshold: 1
- id: uart_modbus_server
tx_pin: 1
rx_pin: 3
baud_rate: 9600
rx_full_threshold: 1
modbus:
- id: mod_bus1

View File

@ -3,6 +3,7 @@ uart:
tx_pin: 4
rx_pin: 5
baud_rate: 9600
rx_full_threshold: 1
modbus:
id: mod_bus1

View File

@ -3,6 +3,7 @@ uart:
tx_pin: 4
rx_pin: 5
baud_rate: 9600
rx_full_threshold: 1
modbus:
id: mod_bus1

View File

@ -3,6 +3,7 @@ uart:
tx_pin: 17
rx_pin: 16
baud_rate: 9600
rx_full_threshold: 1
modbus:
id: mod_bus1

View File

@ -8,6 +8,7 @@ uart:
tx_pin: 17
rx_pin: 16
baud_rate: 9600
rx_full_threshold: 1
modbus:

View File

@ -8,6 +8,7 @@ uart:
tx_pin: 4
rx_pin: 5
baud_rate: 9600
rx_full_threshold: 1
modbus:

View File

@ -8,6 +8,7 @@ uart:
tx_pin: 4
rx_pin: 5
baud_rate: 9600
rx_full_threshold: 1
modbus:

View File

@ -8,6 +8,7 @@ uart:
tx_pin: 17
rx_pin: 16
baud_rate: 9600
rx_full_threshold: 1
modbus:

View File

@ -9,6 +9,7 @@ uart:
rx_pin: 16
baud_rate: 9600
stop_bits: 2
rx_full_threshold: 1
sensor:
- platform: pzemdc

View File

@ -9,6 +9,7 @@ uart:
rx_pin: 5
baud_rate: 9600
stop_bits: 2
rx_full_threshold: 1
sensor:
- platform: pzemdc

View File

@ -9,6 +9,7 @@ uart:
rx_pin: 5
baud_rate: 9600
stop_bits: 2
rx_full_threshold: 1
sensor:
- platform: pzemdc

View File

@ -9,6 +9,7 @@ uart:
rx_pin: 16
baud_rate: 9600
stop_bits: 2
rx_full_threshold: 1
sensor:
- platform: pzemdc

View File

@ -3,6 +3,7 @@ uart:
tx_pin: 17
rx_pin: 16
baud_rate: 9600
rx_full_threshold: 1
sensor:
- platform: sdm_meter

View File

@ -3,6 +3,7 @@ uart:
tx_pin: 4
rx_pin: 5
baud_rate: 9600
rx_full_threshold: 1
sensor:
- platform: sdm_meter

View File

@ -3,6 +3,7 @@ uart:
tx_pin: 4
rx_pin: 5
baud_rate: 9600
rx_full_threshold: 1
sensor:
- platform: sdm_meter

View File

@ -3,6 +3,7 @@ uart:
tx_pin: 17
rx_pin: 16
baud_rate: 9600
rx_full_threshold: 1
sensor:
- platform: sdm_meter

View File

@ -3,6 +3,7 @@ uart:
tx_pin: 17
rx_pin: 16
baud_rate: 9600
rx_full_threshold: 1
sensor:
- platform: selec_meter

View File

@ -3,6 +3,7 @@ uart:
tx_pin: 4
rx_pin: 5
baud_rate: 9600
rx_full_threshold: 1
sensor:
- platform: selec_meter

View File

@ -3,6 +3,7 @@ uart:
tx_pin: 4
rx_pin: 5
baud_rate: 9600
rx_full_threshold: 1
sensor:
- platform: selec_meter

View File

@ -3,6 +3,7 @@ uart:
tx_pin: 17
rx_pin: 16
baud_rate: 9600
rx_full_threshold: 1
sensor:
- platform: selec_meter