mirror of
https://github.com/esphome/esphome.git
synced 2025-10-21 11:13:46 +01:00
fix
This commit is contained in:
@@ -913,9 +913,9 @@ void ListEntitiesLightResponse::dump_to(std::string &out) const {
|
||||
dump_field(out, "object_id", this->object_id_ref_);
|
||||
dump_field(out, "key", this->key);
|
||||
dump_field(out, "name", this->name_ref_);
|
||||
out.append(" supported_color_modes: 0x");
|
||||
out.append(uint32_to_string(this->supported_color_modes));
|
||||
out.append("\n");
|
||||
char buffer[32];
|
||||
snprintf(buffer, sizeof(buffer), " supported_color_modes: 0x%08" PRIX32 "\n", this->supported_color_modes);
|
||||
out.append(buffer);
|
||||
dump_field(out, "min_mireds", this->min_mireds);
|
||||
dump_field(out, "max_mireds", this->max_mireds);
|
||||
for (const auto &it : this->effects) {
|
||||
|
@@ -1564,9 +1564,9 @@ class RepeatedTypeInfo(TypeInfo):
|
||||
if self._use_bitmask:
|
||||
# For bitmask fields, dump the hex value of the bitmask
|
||||
return (
|
||||
f'out.append(" {self.field_name}: 0x");\n'
|
||||
f"out.append(uint32_to_string(this->{self.field_name}));\n"
|
||||
f'out.append("\\n");'
|
||||
f"char buffer[32];\n"
|
||||
f'snprintf(buffer, sizeof(buffer), " {self.field_name}: 0x%08" PRIX32 "\\n", this->{self.field_name});\n'
|
||||
f"out.append(buffer);"
|
||||
)
|
||||
if self._use_pointer:
|
||||
# For pointer fields, dereference and use the existing helper
|
||||
|
Reference in New Issue
Block a user