1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-26 20:53:50 +00:00

[core] Centralize component setup logging to reduce flash usage (#9885)

This commit is contained in:
J. Nick Koston
2025-07-25 09:27:03 -10:00
committed by GitHub
parent 2b87589562
commit b7ce8c116b
288 changed files with 26 additions and 460 deletions

View File

@@ -17,7 +17,6 @@ static const uint8_t RESTART_CMD2 = 0xA5;
static const uint8_t READ_DELAY = 40; // minimum milliseconds from datasheet to safely read measurement result
void GLR01I2CComponent::setup() {
ESP_LOGCONFIG(TAG, "Setting up GL-R01 I2C...");
// Verify sensor presence
if (!this->read_byte_16(REG_VERSION, &this->version_)) {
ESP_LOGE(TAG, "Failed to communicate with GL-R01 I2C sensor!");