mirror of
https://github.com/esphome/esphome.git
synced 2024-11-24 07:58:09 +01:00
CSE7766 needs even parity (#7549)
This commit is contained in:
parent
b3cff566eb
commit
6a8e88b1cc
7 changed files with 7 additions and 1 deletions
|
@ -79,7 +79,7 @@ CONFIG_SCHEMA = cv.Schema(
|
||||||
}
|
}
|
||||||
).extend(uart.UART_DEVICE_SCHEMA)
|
).extend(uart.UART_DEVICE_SCHEMA)
|
||||||
FINAL_VALIDATE_SCHEMA = uart.final_validate_device_schema(
|
FINAL_VALIDATE_SCHEMA = uart.final_validate_device_schema(
|
||||||
"cse7766", baud_rate=4800, require_rx=True
|
"cse7766", baud_rate=4800, parity="EVEN", require_rx=True
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -5,6 +5,7 @@ uart:
|
||||||
rx_pin:
|
rx_pin:
|
||||||
number: 16
|
number: 16
|
||||||
baud_rate: 4800
|
baud_rate: 4800
|
||||||
|
parity: EVEN
|
||||||
|
|
||||||
sensor:
|
sensor:
|
||||||
- platform: cse7766
|
- platform: cse7766
|
||||||
|
|
|
@ -5,6 +5,7 @@ uart:
|
||||||
rx_pin:
|
rx_pin:
|
||||||
number: 5
|
number: 5
|
||||||
baud_rate: 4800
|
baud_rate: 4800
|
||||||
|
parity: EVEN
|
||||||
|
|
||||||
sensor:
|
sensor:
|
||||||
- platform: cse7766
|
- platform: cse7766
|
||||||
|
|
|
@ -5,6 +5,7 @@ uart:
|
||||||
rx_pin:
|
rx_pin:
|
||||||
number: 5
|
number: 5
|
||||||
baud_rate: 4800
|
baud_rate: 4800
|
||||||
|
parity: EVEN
|
||||||
|
|
||||||
sensor:
|
sensor:
|
||||||
- platform: cse7766
|
- platform: cse7766
|
||||||
|
|
|
@ -5,6 +5,7 @@ uart:
|
||||||
rx_pin:
|
rx_pin:
|
||||||
number: 16
|
number: 16
|
||||||
baud_rate: 4800
|
baud_rate: 4800
|
||||||
|
parity: EVEN
|
||||||
|
|
||||||
sensor:
|
sensor:
|
||||||
- platform: cse7766
|
- platform: cse7766
|
||||||
|
|
|
@ -5,6 +5,7 @@ uart:
|
||||||
rx_pin:
|
rx_pin:
|
||||||
number: 5
|
number: 5
|
||||||
baud_rate: 4800
|
baud_rate: 4800
|
||||||
|
parity: EVEN
|
||||||
|
|
||||||
sensor:
|
sensor:
|
||||||
- platform: cse7766
|
- platform: cse7766
|
||||||
|
|
|
@ -5,6 +5,7 @@ uart:
|
||||||
rx_pin:
|
rx_pin:
|
||||||
number: 5
|
number: 5
|
||||||
baud_rate: 4800
|
baud_rate: 4800
|
||||||
|
parity: EVEN
|
||||||
|
|
||||||
sensor:
|
sensor:
|
||||||
- platform: cse7766
|
- platform: cse7766
|
||||||
|
|
Loading…
Reference in a new issue