mirror of
https://github.com/esphome/esphome.git
synced 2025-09-16 10:12:21 +01:00
Activate some clang-tidy checks (#1884)
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <utility>
|
||||
|
||||
#include "esphome/core/component.h"
|
||||
#include "esphome/core/automation.h"
|
||||
#include "esphome/components/text_sensor/text_sensor.h"
|
||||
@@ -10,7 +12,7 @@ namespace text_sensor {
|
||||
class TextSensorStateTrigger : public Trigger<std::string> {
|
||||
public:
|
||||
explicit TextSensorStateTrigger(TextSensor *parent) {
|
||||
parent->add_on_state_callback([this](std::string value) { this->trigger(value); });
|
||||
parent->add_on_state_callback([this](std::string value) { this->trigger(std::move(value)); });
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user