1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-28 21:53:48 +00:00

[text_sensor] Convert LOG_TEXT_SENSOR macro to function to reduce flash usage (#10884)

This commit is contained in:
J. Nick Koston
2025-09-25 19:10:31 -05:00
committed by GitHub
parent 28199c1cf8
commit 250b94d113
3 changed files with 20 additions and 11 deletions

View File

@@ -155,7 +155,7 @@ void CCS811Component::dump_config() {
LOG_UPDATE_INTERVAL(this);
LOG_SENSOR(" ", "CO2 Sensor", this->co2_);
LOG_SENSOR(" ", "TVOC Sensor", this->tvoc_);
LOG_TEXT_SENSOR(" ", "Firmware Version Sensor", this->version_)
LOG_TEXT_SENSOR(" ", "Firmware Version Sensor", this->version_);
if (this->baseline_) {
ESP_LOGCONFIG(TAG, " Baseline: %04X", *this->baseline_);
} else {