mirror of
https://github.com/esphome/esphome.git
synced 2025-09-18 19:22:22 +01:00
Activate some clang-tidy checks (#1884)
This commit is contained in:
@@ -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