Remove superfluous polling on ADS1115 (#2015)

This commit is contained in:
Sean Vig 2021-07-20 17:35:45 -04:00 committed by GitHub
parent 3b3297d269
commit 3e65e6c69a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -64,11 +64,6 @@ void ADS1115Component::setup() {
return;
}
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() {
ESP_LOGCONFIG(TAG, "Setting up ADS1115...");