mirror of
https://github.com/esphome/esphome.git
synced 2024-11-15 10:35:51 +01:00
Update esphome/components/apds9306/sensor.py
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
parent
58c16b6e93
commit
bc7ed7091e
@ -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),
|
||||
),
|
||||
}
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user