Update esphome/components/apds9306/sensor.py

Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
Aodren Auffrédou-Heinicke 2024-05-14 15:09:06 -07:00 committed by GitHub
parent 58c16b6e93
commit bc7ed7091e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -63,8 +63,9 @@ CONFIG_SCHEMA = (
cv.Optional(CONF_BIT_WIDTH, default="18"): cv.enum(
MEASUREMENT_BIT_WIDTHS, lower=True
),
cv.Optional(CONF_MEASUREMENT_RATE, default="100ms"): cv.enum(
MEASUREMENT_RATES, lower=True
cv.Optional(CONF_MEASUREMENT_RATE, default="100ms"): cv.All(
cv.positive_time_period_milliseconds,
cv.enum(MEASUREMENT_RATES, int=True),
),
}
)