1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-30 06:33:51 +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

@@ -39,7 +39,6 @@ static const LogString *pm2005_get_measuring_mode_string(int status) {
static inline uint16_t get_sensor_value(const uint8_t *data, uint8_t i) { return data[i] * 0x100 + data[i + 1]; }
void PM2005Component::setup() {
ESP_LOGCONFIG(TAG, "Running setup");
if (this->sensor_type_ == PM2005) {
this->situation_value_index_ = 3;
this->pm_1_0_value_index_ = 4;