From 02d34a023890966b1b67884b7163a94f7a316c5d Mon Sep 17 00:00:00 2001 From: Otto Winter Date: Wed, 29 May 2019 13:17:01 +0200 Subject: [PATCH] Fix TSL2561 invalid default (#566) Ref https://github.com/esphome/issues/issues/352#issuecomment-496883794 --- esphome/components/tsl2561/sensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/tsl2561/sensor.py b/esphome/components/tsl2561/sensor.py index e2e333cc81..d51ece09d5 100644 --- a/esphome/components/tsl2561/sensor.py +++ b/esphome/components/tsl2561/sensor.py @@ -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({ 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_IS_CS_PACKAGE, default=False): cv.boolean, }).extend(cv.polling_component_schema('60s')).extend(i2c.i2c_device_schema(0x39))