mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-06-06 04:48:27 +02:00
Enable readability-qualified-auto check (#3095)
This commit is contained in:
@@ -52,7 +52,7 @@ void DallasComponent::setup() {
|
||||
this->found_sensors_.push_back(address);
|
||||
}
|
||||
|
||||
for (auto sensor : this->sensors_) {
|
||||
for (auto *sensor : this->sensors_) {
|
||||
if (sensor->get_index().has_value()) {
|
||||
if (*sensor->get_index() >= this->found_sensors_.size()) {
|
||||
this->status_set_error();
|
||||
|
||||
Reference in New Issue
Block a user