Lower range of CONF_FREQUENCY (#4619)

This commit is contained in:
Berend Haan 2023-03-27 00:48:17 +02:00 committed by GitHub
parent e542e75b9e
commit 56504692af
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -156,7 +156,7 @@ CONFIG_SCHEMA = cv.ENTITY_BASE_SCHEMA.extend(
{
cv.Required(CONF_PIN): pins.internal_gpio_input_pin_number,
cv.Optional(CONF_FREQUENCY, default="20MHz"): cv.All(
cv.frequency, cv.Range(min=10e6, max=20e6)
cv.frequency, cv.Range(min=8e6, max=20e6)
),
}
),