mirror of
https://github.com/esphome/esphome.git
synced 2026-05-12 01:50:31 +08:00
[seeed_mr24hpc1] Move baud rate validation to FINAL_VALIDATE_SCHEMA (#15536)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user