mirror of
https://github.com/esphome/esphome.git
synced 2025-04-08 19:05:54 +02:00
Fix python formatting
This commit is contained in:
parent
447fa4d066
commit
66a23e7477
@ -51,14 +51,14 @@ CONFIG_SCHEMA = (
|
|||||||
.extend(uart.UART_DEVICE_SCHEMA)
|
.extend(uart.UART_DEVICE_SCHEMA)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
def validate_rx_full_threshold_uart(config):
|
def validate_rx_full_threshold_uart(config):
|
||||||
uart.final_validate_device_schema(
|
uart.final_validate_device_schema("modbus", rx_full_threshold=1)(config)
|
||||||
"modbus", rx_full_threshold=1
|
|
||||||
)(config)
|
|
||||||
|
|
||||||
|
|
||||||
FINAL_VALIDATE_SCHEMA = validate_rx_full_threshold_uart
|
FINAL_VALIDATE_SCHEMA = validate_rx_full_threshold_uart
|
||||||
|
|
||||||
|
|
||||||
async def to_code(config):
|
async def to_code(config):
|
||||||
cg.add_global(modbus_ns.using)
|
cg.add_global(modbus_ns.using)
|
||||||
var = cg.new_Pvariable(config[CONF_ID])
|
var = cg.new_Pvariable(config[CONF_ID])
|
||||||
|
Loading…
Reference in New Issue
Block a user