Fix esp32_rmt_led_strip custom timing units (#5696)

This commit is contained in:
Jesse Hills 2023-11-08 22:01:26 +13:00
parent dbb1263a36
commit 1bd2e558d6
No known key found for this signature in database
GPG key ID: BEAAE804EFD8E83A

View file

@ -93,19 +93,19 @@ CONFIG_SCHEMA = cv.All(
cv.Inclusive( cv.Inclusive(
CONF_BIT0_HIGH, CONF_BIT0_HIGH,
"custom", "custom",
): cv.positive_time_period_microseconds, ): cv.positive_time_period_nanoseconds,
cv.Inclusive( cv.Inclusive(
CONF_BIT0_LOW, CONF_BIT0_LOW,
"custom", "custom",
): cv.positive_time_period_microseconds, ): cv.positive_time_period_nanoseconds,
cv.Inclusive( cv.Inclusive(
CONF_BIT1_HIGH, CONF_BIT1_HIGH,
"custom", "custom",
): cv.positive_time_period_microseconds, ): cv.positive_time_period_nanoseconds,
cv.Inclusive( cv.Inclusive(
CONF_BIT1_LOW, CONF_BIT1_LOW,
"custom", "custom",
): cv.positive_time_period_microseconds, ): cv.positive_time_period_nanoseconds,
} }
), ),
cv.has_exactly_one_key(CONF_CHIPSET, CONF_BIT0_HIGH), cv.has_exactly_one_key(CONF_CHIPSET, CONF_BIT0_HIGH),