mirror of
https://github.com/esphome/esphome.git
synced 2024-12-23 16:47:57 +01:00
Remove superfluous polling on ADS1115 (#2015)
This commit is contained in:
parent
e19aa3bbe0
commit
837930234f
@ -64,11 +64,6 @@ void ADS1115Component::setup() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this->prev_config_ = config;
|
this->prev_config_ = config;
|
||||||
|
|
||||||
for (auto *sensor : this->sensors_) {
|
|
||||||
this->set_interval(sensor->get_name(), sensor->update_interval(),
|
|
||||||
[this, sensor] { this->request_measurement(sensor); });
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
void ADS1115Component::dump_config() {
|
void ADS1115Component::dump_config() {
|
||||||
ESP_LOGCONFIG(TAG, "Setting up ADS1115...");
|
ESP_LOGCONFIG(TAG, "Setting up ADS1115...");
|
||||||
|
Loading…
Reference in New Issue
Block a user