Skip to content

Commit

Permalink
Re-order component configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
syssi committed Mar 29, 2023
1 parent 70b44f7 commit b700842
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions components/seplos_modbus/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@
from esphome.cpp_helpers import gpio_pin_expression

DEPENDENCIES = ["uart"]

seplos_modbus_ns = cg.esphome_ns.namespace("seplos_modbus")
SeplosModbus = seplos_modbus_ns.class_("SeplosModbus", cg.Component, uart.UARTDevice)
SeplosModbusDevice = seplos_modbus_ns.class_("SeplosModbusDevice")
MULTI_CONF = True

CONF_SEPLOS_MODBUS_ID = "seplos_modbus_id"
CONF_RX_TIMEOUT = "rx_timeout"
CONF_PROTOCOL_VERSION = "protocol_version"
CONF_OVERRIDE_PACK = "override_pack"

seplos_modbus_ns = cg.esphome_ns.namespace("seplos_modbus")
SeplosModbus = seplos_modbus_ns.class_("SeplosModbus", cg.Component, uart.UARTDevice)
SeplosModbusDevice = seplos_modbus_ns.class_("SeplosModbusDevice")

CONFIG_SCHEMA = (
cv.Schema(
{
Expand Down

0 comments on commit b700842

Please sign in to comment.