Fix RF receiver dumpers

This commit is contained in:
Otto Winter 2018-06-11 15:21:38 +02:00
parent 6ae8e3495f
commit 36a3f96011
No known key found for this signature in database
GPG key ID: DB66C0BE6013F97E

View file

@ -21,7 +21,8 @@ DUMPERS = {
CONFIG_SCHEMA = vol.All(cv.ensure_list, [vol.Schema({
cv.GenerateID(): cv.declare_variable_id(RemoteReceiverComponent),
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_BUFFER_SIZE): cv.validate_bytes,
vol.Optional(CONF_FILTER): cv.positive_time_period_microseconds,