mirror of
https://github.com/esphome/esphome.git
synced 2024-11-14 02:58:11 +01:00
Fix TSL2561 invalid default (#566)
Ref https://github.com/esphome/issues/issues/352#issuecomment-496883794
This commit is contained in:
parent
e4bbb56f6b
commit
5fca02c712
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ TSL2561Sensor = tsl2561_ns.class_('TSL2561Sensor', sensor.Sensor, cg.PollingComp
|
||||||
|
|
||||||
CONFIG_SCHEMA = sensor.sensor_schema(UNIT_LUX, ICON_BRIGHTNESS_5, 1).extend({
|
CONFIG_SCHEMA = sensor.sensor_schema(UNIT_LUX, ICON_BRIGHTNESS_5, 1).extend({
|
||||||
cv.GenerateID(): cv.declare_id(TSL2561Sensor),
|
cv.GenerateID(): cv.declare_id(TSL2561Sensor),
|
||||||
cv.Optional(CONF_INTEGRATION_TIME, default=402): validate_integration_time,
|
cv.Optional(CONF_INTEGRATION_TIME, default='402ms'): validate_integration_time,
|
||||||
cv.Optional(CONF_GAIN, default='1X'): cv.enum(GAINS, upper=True),
|
cv.Optional(CONF_GAIN, default='1X'): cv.enum(GAINS, upper=True),
|
||||||
cv.Optional(CONF_IS_CS_PACKAGE, default=False): cv.boolean,
|
cv.Optional(CONF_IS_CS_PACKAGE, default=False): cv.boolean,
|
||||||
}).extend(cv.polling_component_schema('60s')).extend(i2c.i2c_device_schema(0x39))
|
}).extend(cv.polling_component_schema('60s')).extend(i2c.i2c_device_schema(0x39))
|
||||||
|
|
Loading…
Reference in a new issue