ESPHome  2022.8.0
automation.h
Go to the documentation of this file.
1 #pragma once
2 
5 #include "sen5x.h"
6 
7 namespace esphome {
8 namespace sen5x {
9 
10 template<typename... Ts> class StartFanAction : public Action<Ts...> {
11  public:
12  explicit StartFanAction(SEN5XComponent *sen5x) : sen5x_(sen5x) {}
13 
14  void play(Ts... x) override { this->sen5x_->start_fan_cleaning(); }
15 
16  protected:
18 };
19 
20 } // namespace sen5x
21 } // namespace esphome
StartFanAction(SEN5XComponent *sen5x)
Definition: automation.h:12
void play(Ts... x) override
Definition: automation.h:14
Definition: a4988.cpp:4