mirror of
https://github.com/esphome/esphome.git
synced 2025-10-05 19:33:47 +01:00
lint
This commit is contained in:
@@ -23,9 +23,9 @@ template<typename... Ts> class ScriptExecuteAction : public Action<Ts...> {
|
||||
public:
|
||||
ScriptExecuteAction(Script *script) : script_(script) {}
|
||||
|
||||
protected:
|
||||
void play_(Ts... x) override { this->script_->trigger(); }
|
||||
void play(Ts... x) override { this->script_->trigger(); }
|
||||
|
||||
protected:
|
||||
Script *script_;
|
||||
};
|
||||
|
||||
@@ -33,9 +33,9 @@ template<typename... Ts> class ScriptStopAction : public Action<Ts...> {
|
||||
public:
|
||||
ScriptStopAction(Script *script) : script_(script) {}
|
||||
|
||||
protected:
|
||||
void play_(Ts... x) override { this->script_->stop(); }
|
||||
void play(Ts... x) override { this->script_->stop(); }
|
||||
|
||||
protected:
|
||||
Script *script_;
|
||||
};
|
||||
|
||||
@@ -76,10 +76,10 @@ template<typename... Ts> class ScriptWaitAction : public Action<Ts...>, public C
|
||||
|
||||
float get_setup_priority() const override { return setup_priority::DATA; }
|
||||
|
||||
protected:
|
||||
void play_(Ts... x) override { /* ignore - see play_complex */
|
||||
void play(Ts... x) override { /* ignore - see play_complex */
|
||||
}
|
||||
|
||||
protected:
|
||||
Script *script_;
|
||||
std::tuple<Ts...> var_{};
|
||||
};
|
||||
|
Reference in New Issue
Block a user