mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 15:12:06 +00:00 
			
		
		
		
	Merge remote-tracking branch 'upstream/esphome_missed' into integration
This commit is contained in:
		| @@ -14,13 +14,13 @@ template<typename... Ts> class SendAction : public Action<Ts...>, public Parente | |||||||
|   TEMPLATABLE_VALUE(std::vector<uint8_t>, data); |   TEMPLATABLE_VALUE(std::vector<uint8_t>, data); | ||||||
|  |  | ||||||
|  public: |  public: | ||||||
|   void add_on_sent(const std::vector<Action<Ts...> *> &actions) { |   void add_on_sent(const std::initializer_list<Action<Ts...> *> &actions) { | ||||||
|     this->sent_.add_actions(actions); |     this->sent_.add_actions(actions); | ||||||
|     if (this->flags_.wait_for_sent) { |     if (this->flags_.wait_for_sent) { | ||||||
|       this->sent_.add_action(new LambdaAction<Ts...>([this](Ts... x) { this->play_next_(x...); })); |       this->sent_.add_action(new LambdaAction<Ts...>([this](Ts... x) { this->play_next_(x...); })); | ||||||
|     } |     } | ||||||
|   } |   } | ||||||
|   void add_on_error(const std::vector<Action<Ts...> *> &actions) { |   void add_on_error(const std::initializer_list<Action<Ts...> *> &actions) { | ||||||
|     this->error_.add_actions(actions); |     this->error_.add_actions(actions); | ||||||
|     if (this->flags_.wait_for_sent) { |     if (this->flags_.wait_for_sent) { | ||||||
|       this->error_.add_action(new LambdaAction<Ts...>([this](Ts... x) { |       this->error_.add_action(new LambdaAction<Ts...>([this](Ts... x) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user