mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 06:33:51 +00:00 
			
		
		
		
	fixes
This commit is contained in:
		| @@ -569,6 +569,10 @@ class StringType(TypeInfo): | ||||
|         return f"buffer.encode_string({self.number}, this->{self.field_name}_ref_);" | ||||
|  | ||||
|     def dump(self, name): | ||||
|         # If name is 'it', this is a repeated field element - always use string | ||||
|         if name == "it": | ||||
|             return "append_quoted_string(out, StringRef(it));" | ||||
|  | ||||
|         # For SOURCE_CLIENT only, always use std::string | ||||
|         if not self._needs_encode: | ||||
|             return f'out.append("\'").append(this->{self.field_name}).append("\'");' | ||||
|   | ||||
		Reference in New Issue
	
	Block a user