diff --git a/esphome/components/ltr390/ltr390.cpp b/esphome/components/ltr390/ltr390.cpp index 4388b0c41e..66a3839d16 100644 --- a/esphome/components/ltr390/ltr390.cpp +++ b/esphome/components/ltr390/ltr390.cpp @@ -155,7 +155,7 @@ void LTR390Component::setup() { void LTR390Component::dump_config() { LOG_I2C_DEVICE(this); } void LTR390Component::update() { - if (!this->reading_ && mode_funcs_.size() > 0) { + if (!this->reading_ && !mode_funcs_.empty()) { this->reading_ = true; this->read_mode_(0); }