reverted changes to tests and fixed sensor.py

This commit is contained in:
Aodren Auffrédou-Heinicke 2024-05-14 17:10:09 -07:00
parent 10520b89b4
commit 5677464ff7
7 changed files with 9 additions and 9 deletions

View File

@ -57,11 +57,11 @@ CONFIG_SCHEMA = (
)
.extend(
{
cv.Optional(CONF_GAIN, default=1): cv.enum(AMBIENT_LIGHT_GAINS, int=True),
cv.Optional(CONF_BIT_WIDTH, default=18): cv.enum(
cv.Optional(CONF_GAIN, default="1"): cv.enum(AMBIENT_LIGHT_GAINS, int=True),
cv.Optional(CONF_BIT_WIDTH, default="18"): cv.enum(
MEASUREMENT_BIT_WIDTHS, int=True
),
cv.Optional(CONF_MEASUREMENT_RATE, default=100): cv.All(
cv.Optional(CONF_MEASUREMENT_RATE, default="100ms"): cv.All(
cv.positive_time_period_milliseconds,
cv.enum(MEASUREMENT_RATES, int=True),
),

View File

@ -7,5 +7,5 @@ sensor:
name: "APDS9306 Light Level"
gain: 1
bit_width: 18
measurement_rate: 100
measurement_rate: 100ms
update_interval: 60s

View File

@ -7,5 +7,5 @@ sensor:
name: "APDS9306 Light Level"
gain: 1
bit_width: 18
measurement_rate: 100
measurement_rate: 100ms
update_interval: 60s

View File

@ -7,5 +7,5 @@ sensor:
name: "APDS9306 Light Level"
gain: 1
bit_width: 18
measurement_rate: 100
measurement_rate: 100ms
update_interval: 60s

View File

@ -7,5 +7,5 @@ sensor:
name: "APDS9306 Light Level"
gain: 1
bit_width: 18
measurement_rate: 100
measurement_rate: 100ms
update_interval: 60s

View File

@ -7,5 +7,5 @@ sensor:
name: "APDS9306 Light Level"
gain: 1
bit_width: 18
measurement_rate: 100
measurement_rate: 100ms
update_interval: 60s

View File

@ -7,5 +7,5 @@ sensor:
name: "APDS9306 Light Level"
gain: 1
bit_width: 18
measurement_rate: 100
measurement_rate: 100ms
update_interval: 60s