mirror of
https://github.com/esphome/esphome.git
synced 2024-11-25 08:28:12 +01:00
Fix clang-tidy complaint
This commit is contained in:
parent
60891b4d01
commit
1bbea5c79b
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue