Activate some clang-tidy checks (#1884)
This commit is contained in:
1 parent
eb9bd69405
commit
360effcb72
109 files changed
+458
-422
No files matched your search
@@ -9,7 +9,7 @@ static const char *TAG = "text_sensor";
|
||||
TextSensor::TextSensor() : TextSensor("") {}
|
||||
TextSensor::TextSensor(const std::string &name) : Nameable(name) {}
|
||||
|
||||
void TextSensor::publish_state(std::string state) {
|
||||
void TextSensor::publish_state(const std::string &state) {
|
||||
this->state = state;
|
||||
this->has_state_ = true;
|
||||
ESP_LOGD(TAG, "'%s': Sending state '%s'", this->name_.c_str(), state.c_str());
|
||||
|
||||
Reference in new issue
Block a user