mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-29 22:24:26 +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: | ||||
| #endif | ||||
|  | ||||
|  public: | ||||
|   template<typename T> bool send_message(const T &msg) { | ||||
| #ifdef HAS_PROTO_MESSAGE_DUMP | ||||
|     this->log_send_message_(T::message_name(), msg.dump()); | ||||
|   | ||||
| @@ -1352,8 +1352,6 @@ def main() -> None: | ||||
|     hpp += " public:\n" | ||||
|     hpp += "#endif\n\n" | ||||
|  | ||||
|     hpp += " public:\n" | ||||
|  | ||||
|     # Add generic send_message method | ||||
|     hpp += "  template<typename T>\n" | ||||
|     hpp += "  bool send_message(const T &msg) {\n" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user