mirror of
https://github.com/esphome/esphome.git
synced 2025-09-16 10:12:21 +01:00
lint
This commit is contained in:
@@ -31,8 +31,9 @@ template<typename... Ts> class TextSensorPublishAction : public Action<Ts...> {
|
||||
TextSensorPublishAction(TextSensor *sensor) : sensor_(sensor) {}
|
||||
TEMPLATABLE_VALUE(std::string, state)
|
||||
|
||||
void play(Ts... x) override { this->sensor_->publish_state(this->state_.value(x...)); }
|
||||
|
||||
protected:
|
||||
void play_(Ts... x) override { this->sensor_->publish_state(this->state_.value(x...)); }
|
||||
TextSensor *sensor_;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user