diff --git a/esphome/components/api/api_pb2.cpp b/esphome/components/api/api_pb2.cpp index dab0b29127..d6b85d257c 100644 --- a/esphome/components/api/api_pb2.cpp +++ b/esphome/components/api/api_pb2.cpp @@ -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(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(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(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"); diff --git a/script/api_protobuf/api_protobuf.py b/script/api_protobuf/api_protobuf.py index 7b9e7941ae..7ccdc5a24e 100755 --- a/script/api_protobuf/api_protobuf.py +++ b/script/api_protobuf/api_protobuf.py @@ -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'