mirror of
https://github.com/esphome/esphome.git
synced 2026-09-18 02:28:42 +00:00
[modbus] Remove disable_crc validation stub (#19078)
This commit is contained in:
@@ -8,13 +8,7 @@ from esphome import pins
|
||||
import esphome.codegen as cg
|
||||
from esphome.components import uart
|
||||
import esphome.config_validation as cv
|
||||
from esphome.const import (
|
||||
CONF_ADDRESS,
|
||||
CONF_CONTINUOUS,
|
||||
CONF_DISABLE_CRC,
|
||||
CONF_FLOW_CONTROL_PIN,
|
||||
CONF_ID,
|
||||
)
|
||||
from esphome.const import CONF_ADDRESS, CONF_CONTINUOUS, CONF_FLOW_CONTROL_PIN, CONF_ID
|
||||
from esphome.cpp_generator import MockObj
|
||||
from esphome.cpp_helpers import gpio_pin_expression
|
||||
import esphome.final_validate as fv
|
||||
@@ -285,10 +279,6 @@ CONFIG_SCHEMA = cv.typed_schema(
|
||||
cv.Optional(
|
||||
CONF_TURNAROUND_TIME, default="600ms"
|
||||
): cv.positive_time_period_milliseconds,
|
||||
# Remove before 2026.10.0
|
||||
cv.Optional(CONF_DISABLE_CRC): cv.invalid(
|
||||
"'disable_crc' has been removed. The parser no longer requires it — remove this option."
|
||||
),
|
||||
}
|
||||
)
|
||||
.extend(cv.COMPONENT_SCHEMA)
|
||||
@@ -297,10 +287,6 @@ CONFIG_SCHEMA = cv.typed_schema(
|
||||
{
|
||||
cv.GenerateID(): cv.declare_id(ModbusServer),
|
||||
cv.Optional(CONF_FLOW_CONTROL_PIN): pins.gpio_output_pin_schema,
|
||||
# Remove before 2026.10.0
|
||||
cv.Optional(CONF_DISABLE_CRC): cv.invalid(
|
||||
"'disable_crc' has been removed. The parser no longer requires it — remove this option."
|
||||
),
|
||||
}
|
||||
)
|
||||
.extend(cv.COMPONENT_SCHEMA)
|
||||
|
||||
@@ -352,7 +352,6 @@ CONF_DIRECTION = "direction"
|
||||
CONF_DIRECTION_COMMAND_TOPIC = "direction_command_topic"
|
||||
CONF_DIRECTION_OUTPUT = "direction_output"
|
||||
CONF_DIRECTION_STATE_TOPIC = "direction_state_topic"
|
||||
CONF_DISABLE_CRC = "disable_crc"
|
||||
CONF_DISABLED = "disabled"
|
||||
CONF_DISABLED_BY_DEFAULT = "disabled_by_default"
|
||||
CONF_DISCONNECT_DELAY = "disconnect_delay"
|
||||
|
||||
+1
-1
@@ -710,7 +710,7 @@ def lint_constants_usage():
|
||||
# Maximum allowed CONF_ constants in esphome/const.py.
|
||||
# This file is frozen — new constants go in esphome/components/const/__init__.py.
|
||||
# Decrease this number when constants are moved out of const.py.
|
||||
CONST_PY_MAX_CONF = 1017
|
||||
CONST_PY_MAX_CONF = 1016
|
||||
|
||||
|
||||
@lint_content_check(include=["esphome/const.py"])
|
||||
|
||||
Reference in New Issue
Block a user