mirror of
https://github.com/esphome/esphome.git
synced 2024-11-25 08:28:12 +01:00
Fix remote_transmitter wait time unit (#654)
Fixes https://github.com/esphome/issues/issues/485
This commit is contained in:
parent
49f9ad66db
commit
82625a3080
1 changed files with 2 additions and 2 deletions
|
@ -88,7 +88,7 @@ def validate_repeat(value):
|
|||
return cv.Schema({
|
||||
cv.Required(CONF_TIMES): cv.templatable(cv.positive_int),
|
||||
cv.Optional(CONF_WAIT_TIME, default='10ms'):
|
||||
cv.templatable(cv.positive_time_period_milliseconds),
|
||||
cv.templatable(cv.positive_time_period_microseconds),
|
||||
})(value)
|
||||
return validate_repeat({CONF_TIMES: value})
|
||||
|
||||
|
@ -506,7 +506,7 @@ RC_SWITCH_TRANSMITTER = cv.Schema({
|
|||
cv.Optional(CONF_REPEAT, default={CONF_TIMES: 5}): cv.Schema({
|
||||
cv.Required(CONF_TIMES): cv.templatable(cv.positive_int),
|
||||
cv.Optional(CONF_WAIT_TIME, default='10ms'):
|
||||
cv.templatable(cv.positive_time_period_milliseconds),
|
||||
cv.templatable(cv.positive_time_period_microseconds),
|
||||
}),
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in a new issue