mirror of
https://github.com/esphome/esphome.git
synced 2026-09-11 15:27:33 +00:00
A StringRef field that is only ever encoded is skipped when empty before its pointer is read, and the dump helper checks empty() first, so pointing it at "" buys nothing while costing one store per field in every message constructor. Fields that are decoded or force encoded keep the empty string default.