mirror of
https://github.com/esphome/esphome.git
synced 2026-09-12 07:47:33 +00:00
[api] Use const char* pointers for light effects to eliminate heap allocations (#12090)
This commit is contained in:
@@ -924,7 +924,7 @@ void ListEntitiesLightResponse::dump_to(std::string &out) const {
|
||||
}
|
||||
dump_field(out, "min_mireds", this->min_mireds);
|
||||
dump_field(out, "max_mireds", this->max_mireds);
|
||||
for (const auto &it : this->effects) {
|
||||
for (const auto &it : *this->effects) {
|
||||
dump_field(out, "effects", it, 4);
|
||||
}
|
||||
dump_field(out, "disabled_by_default", this->disabled_by_default);
|
||||
|
||||
Reference in New Issue
Block a user