mirror of
https://github.com/esphome/esphome.git
synced 2024-11-22 11:47:30 +01:00
Fix RF receiver dumpers
This commit is contained in:
parent
6ae8e3495f
commit
36a3f96011
@ -21,7 +21,8 @@ DUMPERS = {
|
|||||||
CONFIG_SCHEMA = vol.All(cv.ensure_list, [vol.Schema({
|
CONFIG_SCHEMA = vol.All(cv.ensure_list, [vol.Schema({
|
||||||
cv.GenerateID(): cv.declare_variable_id(RemoteReceiverComponent),
|
cv.GenerateID(): cv.declare_variable_id(RemoteReceiverComponent),
|
||||||
vol.Required(CONF_PIN): pins.gpio_input_pin_schema,
|
vol.Required(CONF_PIN): pins.gpio_input_pin_schema,
|
||||||
vol.Optional(CONF_DUMP, default=[]): vol.All(vol.Lower, cv.one_of(*DUMPERS)),
|
vol.Optional(CONF_DUMP, default=[]): vol.All(cv.ensure_list,
|
||||||
|
[vol.All(vol.Lower, cv.one_of(*DUMPERS))]),
|
||||||
vol.Optional(CONF_TOLERANCE): vol.All(cv.percentage_int, vol.Range(min=0)),
|
vol.Optional(CONF_TOLERANCE): vol.All(cv.percentage_int, vol.Range(min=0)),
|
||||||
vol.Optional(CONF_BUFFER_SIZE): cv.validate_bytes,
|
vol.Optional(CONF_BUFFER_SIZE): cv.validate_bytes,
|
||||||
vol.Optional(CONF_FILTER): cv.positive_time_period_microseconds,
|
vol.Optional(CONF_FILTER): cv.positive_time_period_microseconds,
|
||||||
|
Loading…
Reference in New Issue
Block a user