mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 22:53:59 +00:00 
			
		
		
		
	Merge branch 'reduce_duplicate_gen_code_api' into integration
This commit is contained in:
		| @@ -17,7 +17,6 @@ class APIServerConnectionBase : public ProtoService { | |||||||
|  public: |  public: | ||||||
| #endif | #endif | ||||||
|  |  | ||||||
|  public: |  | ||||||
|   template<typename T> bool send_message(const T &msg) { |   template<typename T> bool send_message(const T &msg) { | ||||||
| #ifdef HAS_PROTO_MESSAGE_DUMP | #ifdef HAS_PROTO_MESSAGE_DUMP | ||||||
|     this->log_send_message_(T::message_name(), msg.dump()); |     this->log_send_message_(T::message_name(), msg.dump()); | ||||||
|   | |||||||
| @@ -1352,8 +1352,6 @@ def main() -> None: | |||||||
|     hpp += " public:\n" |     hpp += " public:\n" | ||||||
|     hpp += "#endif\n\n" |     hpp += "#endif\n\n" | ||||||
|  |  | ||||||
|     hpp += " public:\n" |  | ||||||
|  |  | ||||||
|     # Add generic send_message method |     # Add generic send_message method | ||||||
|     hpp += "  template<typename T>\n" |     hpp += "  template<typename T>\n" | ||||||
|     hpp += "  bool send_message(const T &msg) {\n" |     hpp += "  bool send_message(const T &msg) {\n" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user