mirror of
https://github.com/esphome/esphome.git
synced 2025-09-17 18:52:19 +01:00
update minimal python version to 3.10 (#8850)
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import re
|
||||
from typing import Optional
|
||||
|
||||
from esphome import automation, pins
|
||||
import esphome.codegen as cg
|
||||
@@ -322,12 +321,12 @@ def final_validate_device_schema(
|
||||
name: str,
|
||||
*,
|
||||
uart_bus: str = CONF_UART_ID,
|
||||
baud_rate: Optional[int] = None,
|
||||
baud_rate: int | None = None,
|
||||
require_tx: bool = False,
|
||||
require_rx: bool = False,
|
||||
data_bits: Optional[int] = None,
|
||||
parity: Optional[str] = None,
|
||||
stop_bits: Optional[int] = None,
|
||||
data_bits: int | None = None,
|
||||
parity: str | None = None,
|
||||
stop_bits: int | None = None,
|
||||
):
|
||||
def validate_baud_rate(value):
|
||||
if value != baud_rate:
|
||||
|
Reference in New Issue
Block a user