mirror of
https://github.com/esphome/esphome.git
synced 2025-01-31 18:20:53 +00: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
@ -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…
x
Reference in New Issue
Block a user