mirror of
https://github.com/esphome/esphome.git
synced 2025-09-16 18:22:22 +01:00
lint
This commit is contained in:
@@ -26,8 +26,9 @@ template<typename... Ts> class SensorPublishAction : public Action<Ts...> {
|
||||
SensorPublishAction(Sensor *sensor) : sensor_(sensor) {}
|
||||
TEMPLATABLE_VALUE(float, 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...)); }
|
||||
Sensor *sensor_;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user