mirror of
https://github.com/esphome/esphome.git
synced 2025-09-05 12:52:19 +01:00
Fix clang-tidy complaint
This commit is contained in:
@@ -155,7 +155,7 @@ void LTR390Component::setup() {
|
|||||||
void LTR390Component::dump_config() { LOG_I2C_DEVICE(this); }
|
void LTR390Component::dump_config() { LOG_I2C_DEVICE(this); }
|
||||||
|
|
||||||
void LTR390Component::update() {
|
void LTR390Component::update() {
|
||||||
if (!this->reading_ && mode_funcs_.size() > 0) {
|
if (!this->reading_ && !mode_funcs_.empty()) {
|
||||||
this->reading_ = true;
|
this->reading_ = true;
|
||||||
this->read_mode_(0);
|
this->read_mode_(0);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user