diff --git a/esphome/components/ltr390/ltr390.cpp b/esphome/components/ltr390/ltr390.cpp index 0b39d0c1fb..cbf1e2e3f9 100644 --- a/esphome/components/ltr390/ltr390.cpp +++ b/esphome/components/ltr390/ltr390.cpp @@ -200,7 +200,6 @@ void LTR390Component::update() { this->reading = true; this->read_mode(0); } - } } // namespace ltr390 diff --git a/esphome/components/ltr390/sensor.py b/esphome/components/ltr390/sensor.py index 576380e633..41ffdf3197 100644 --- a/esphome/components/ltr390/sensor.py +++ b/esphome/components/ltr390/sensor.py @@ -1,7 +1,7 @@ import esphome.codegen as cg import esphome.config_validation as cv from esphome.components import i2c, sensor -from esphome.const import CONF_ID, CONF_GAIN, CONF_LIGHT, CONF_RESOLUTION, +from esphome.const import CONF_ID, CONF_GAIN, CONF_LIGHT, CONF_RESOLUTION, \ UNIT_LUX, ICON_BRIGHTNESS_5 DEPENDENCIES = ['i2c']