mirror of
https://github.com/esphome/esphome.git
synced 2025-10-24 20:53:48 +01:00
Fix regression and linting
This commit is contained in:
@@ -137,7 +137,7 @@ void LTR390Component::read_mode_(int mode_index) {
|
|||||||
this->set_mode_(std::get<0>(this->mode_funcs_->at(mode_index)));
|
this->set_mode_(std::get<0>(this->mode_funcs_->at(mode_index)));
|
||||||
|
|
||||||
// After the sensor integration time do the following
|
// After the sensor integration time do the following
|
||||||
this->set_timeout_(RESOLUTIONVALUE[this->res_] * 100, [this, mode_index]() {
|
this->set_timeout(RESOLUTIONVALUE[this->res_] * 100, [this, mode_index]() {
|
||||||
// Read from the sensor
|
// Read from the sensor
|
||||||
std::get<1>(this->mode_funcs_->at(mode_index))();
|
std::get<1>(this->mode_funcs_->at(mode_index))();
|
||||||
|
|
||||||
@@ -162,7 +162,7 @@ void LTR390Component::setup() {
|
|||||||
this->reset_();
|
this->reset_();
|
||||||
|
|
||||||
this->enable_(true);
|
this->enable_(true);
|
||||||
ESP_LOGD(TAG, "%s", this->enabled() ? "ENABLED" : "DISABLED");
|
ESP_LOGD(TAG, "%s", this->enabled_() ? "ENABLED" : "DISABLED");
|
||||||
if (!this->enabled_()) {
|
if (!this->enabled_()) {
|
||||||
this->mark_failed();
|
this->mark_failed();
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user