mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 22:53:59 +00:00 
			
		
		
		
	This reverts commit 97eba1eecc.
			
			
This commit is contained in:
		| @@ -793,6 +793,10 @@ void CoverStateResponse::dump_to(std::string &out) const { | ||||
|   out.append(buffer); | ||||
|   out.append("\n"); | ||||
|  | ||||
|   out.append("  legacy_state: "); | ||||
|   out.append(proto_enum_to_string<enums::LegacyCoverState>(this->legacy_state)); | ||||
|   out.append("\n"); | ||||
|  | ||||
|   out.append("  position: "); | ||||
|   sprintf(buffer, "%g", this->position); | ||||
|   out.append(buffer); | ||||
| @@ -876,6 +880,10 @@ void CoverCommandRequest::dump_to(std::string &out) const { | ||||
|   out.append(YESNO(this->has_legacy_command)); | ||||
|   out.append("\n"); | ||||
|  | ||||
|   out.append("  legacy_command: "); | ||||
|   out.append(proto_enum_to_string<enums::LegacyCoverCommand>(this->legacy_command)); | ||||
|   out.append("\n"); | ||||
|  | ||||
|   out.append("  has_position: "); | ||||
|   out.append(YESNO(this->has_position)); | ||||
|   out.append("\n"); | ||||
| @@ -1322,6 +1330,22 @@ void ListEntitiesLightResponse::dump_to(std::string &out) const { | ||||
|     out.append("\n"); | ||||
|   } | ||||
|  | ||||
|   out.append("  legacy_supports_brightness: "); | ||||
|   out.append(YESNO(this->legacy_supports_brightness)); | ||||
|   out.append("\n"); | ||||
|  | ||||
|   out.append("  legacy_supports_rgb: "); | ||||
|   out.append(YESNO(this->legacy_supports_rgb)); | ||||
|   out.append("\n"); | ||||
|  | ||||
|   out.append("  legacy_supports_white_value: "); | ||||
|   out.append(YESNO(this->legacy_supports_white_value)); | ||||
|   out.append("\n"); | ||||
|  | ||||
|   out.append("  legacy_supports_color_temperature: "); | ||||
|   out.append(YESNO(this->legacy_supports_color_temperature)); | ||||
|   out.append("\n"); | ||||
|  | ||||
|   out.append("  min_mireds: "); | ||||
|   sprintf(buffer, "%g", this->min_mireds); | ||||
|   out.append(buffer); | ||||
| @@ -2736,6 +2760,11 @@ void ExecuteServiceArgument::dump_to(std::string &out) const { | ||||
|   out.append(YESNO(this->bool_)); | ||||
|   out.append("\n"); | ||||
|  | ||||
|   out.append("  legacy_int: "); | ||||
|   sprintf(buffer, "%d", this->legacy_int); | ||||
|   out.append(buffer); | ||||
|   out.append("\n"); | ||||
|  | ||||
|   out.append("  float_: "); | ||||
|   sprintf(buffer, "%g", this->float_); | ||||
|   out.append(buffer); | ||||
| @@ -3151,6 +3180,10 @@ void ListEntitiesClimateResponse::dump_to(std::string &out) const { | ||||
|   out.append(buffer); | ||||
|   out.append("\n"); | ||||
|  | ||||
|   out.append("  legacy_supports_away: "); | ||||
|   out.append(YESNO(this->legacy_supports_away)); | ||||
|   out.append("\n"); | ||||
|  | ||||
|   out.append("  supports_action: "); | ||||
|   out.append(YESNO(this->supports_action)); | ||||
|   out.append("\n"); | ||||
| @@ -3309,6 +3342,10 @@ void ClimateStateResponse::dump_to(std::string &out) const { | ||||
|   out.append(buffer); | ||||
|   out.append("\n"); | ||||
|  | ||||
|   out.append("  legacy_away: "); | ||||
|   out.append(YESNO(this->legacy_away)); | ||||
|   out.append("\n"); | ||||
|  | ||||
|   out.append("  action: "); | ||||
|   out.append(proto_enum_to_string<enums::ClimateAction>(this->action)); | ||||
|   out.append("\n"); | ||||
| @@ -3508,6 +3545,10 @@ void ClimateCommandRequest::dump_to(std::string &out) const { | ||||
|   out.append(YESNO(this->has_legacy_away)); | ||||
|   out.append("\n"); | ||||
|  | ||||
|   out.append("  legacy_away: "); | ||||
|   out.append(YESNO(this->legacy_away)); | ||||
|   out.append("\n"); | ||||
|  | ||||
|   out.append("  has_fan_mode: "); | ||||
|   out.append(YESNO(this->has_fan_mode)); | ||||
|   out.append("\n"); | ||||
|   | ||||
| @@ -183,8 +183,6 @@ class TypeInfo: | ||||
|  | ||||
|     @property | ||||
|     def dump_content(self): | ||||
|         if self.name.startswith("legacy_"): | ||||
|             return None | ||||
|         o = f'out.append("  {self.name}: ");\n' | ||||
|         o += self.dump(f"this->{self.field_name}") + "\n" | ||||
|         o += f'out.append("\\n");\n' | ||||
|   | ||||
		Reference in New Issue
	
	Block a user