diff --git a/esphome/components/const/__init__.py b/esphome/components/const/__init__.py index 06e8d80103f..b4d07ef1999 100644 --- a/esphome/components/const/__init__.py +++ b/esphome/components/const/__init__.py @@ -65,6 +65,7 @@ CONF_REMOTE_ID = "remote_id" CONF_REQUEST_HEADERS = "request_headers" CONF_ROLE = "role" CONF_ROWS = "rows" +CONF_RST_PIN = "rst_pin" CONF_SCAN_PARAMETERS = "scan_parameters" CONF_SERIAL_NUMBER = "serial_number" CONF_SHA256 = "sha256" diff --git a/esphome/components/sx126x/__init__.py b/esphome/components/sx126x/__init__.py index 2c14ea0bd56..79798a73cce 100644 --- a/esphome/components/sx126x/__init__.py +++ b/esphome/components/sx126x/__init__.py @@ -3,7 +3,7 @@ from typing import Any from esphome import automation, pins import esphome.codegen as cg from esphome.components import spi -from esphome.components.const import CONF_CRC_ENABLE, CONF_ON_PACKET +from esphome.components.const import CONF_CRC_ENABLE, CONF_ON_PACKET, CONF_RST_PIN import esphome.config_validation as cv from esphome.const import CONF_BUSY_PIN, CONF_DATA, CONF_FREQUENCY, CONF_ID from esphome.core import ID, TimePeriod @@ -34,7 +34,6 @@ CONF_PA_RAMP = "pa_ramp" CONF_PAYLOAD_LENGTH = "payload_length" CONF_PREAMBLE_DETECT = "preamble_detect" CONF_PREAMBLE_SIZE = "preamble_size" -CONF_RST_PIN = "rst_pin" CONF_RX_START = "rx_start" CONF_RF_SWITCH = "rf_switch" CONF_SHAPING = "shaping" diff --git a/esphome/components/sx127x/__init__.py b/esphome/components/sx127x/__init__.py index 49e68c61844..65d3ada470b 100644 --- a/esphome/components/sx127x/__init__.py +++ b/esphome/components/sx127x/__init__.py @@ -3,7 +3,7 @@ from typing import Any from esphome import automation, pins import esphome.codegen as cg from esphome.components import spi -from esphome.components.const import CONF_CRC_ENABLE, CONF_ON_PACKET +from esphome.components.const import CONF_CRC_ENABLE, CONF_ON_PACKET, CONF_RST_PIN import esphome.config_validation as cv from esphome.const import CONF_DATA, CONF_FREQUENCY, CONF_ID from esphome.core import ID @@ -34,7 +34,6 @@ CONF_PREAMBLE_DETECT = "preamble_detect" CONF_PREAMBLE_ERRORS = "preamble_errors" CONF_PREAMBLE_POLARITY = "preamble_polarity" CONF_PREAMBLE_SIZE = "preamble_size" -CONF_RST_PIN = "rst_pin" CONF_RX_FLOOR = "rx_floor" CONF_RX_START = "rx_start" CONF_SHAPING = "shaping"