From 1bbea5c79b2d01f8811870183edb9758f1388f68 Mon Sep 17 00:00:00 2001 From: steve Date: Sat, 28 Aug 2021 15:40:02 +1000 Subject: [PATCH] Fix clang-tidy complaint --- esphome/components/ltr390/ltr390.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }