[seeed_mr24hpc1] Move baud rate validation to FINAL_VALIDATE_SCHEMA (#15536)

This commit is contained in:
Jonathan Swoboda
2026-04-07 17:42:33 -04:00
committed by GitHub
parent 2fe6cb392b
commit 4ebfe71b8f
2 changed files with 1 additions and 2 deletions
@@ -33,6 +33,7 @@ CONFIG_SCHEMA = (
# This authentication mode requires that the device must have transmit and receive functionality, a parity mode of "NONE", and a stop bit of one.
FINAL_VALIDATE_SCHEMA = uart.final_validate_device_schema(
"seeed_mr24hpc1",
baud_rate=115200,
require_tx=True,
require_rx=True,
parity="NONE",
@@ -62,8 +62,6 @@ void MR24HPC1Component::dump_config() {
// Initialisation functions
void MR24HPC1Component::setup() {
this->check_uart_settings(115200);
#ifdef USE_NUMBER
if (this->custom_mode_number_ != nullptr) {
this->custom_mode_number_->publish_state(0); // Zero out the custom mode