Activate some clang-tidy checks (#1884)

This commit is contained in:
Otto Winter authored and GitHub committed 2021-06-10 13:04:40 +02:00
1 parent eb9bd69405
commit 360effcb72
109 files changed
+458 -422

No files matched your search

+1 -1
View File
@@ -44,7 +44,7 @@ void Controller::setup_controller() {
#ifdef USE_TEXT_SENSOR
for (auto *obj : App.get_text_sensors()) {
if (!obj->is_internal())
obj->add_on_state_callback([this, obj](std::string state) { this->on_text_sensor_update(obj, state); });
obj->add_on_state_callback([this, obj](const std::string &state) { this->on_text_sensor_update(obj, state); });
}
#endif
#ifdef USE_CLIMATE