1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-15 01:32:19 +01:00

Reduce ESP_LOGCONFIG calls (#9026)

This commit is contained in:
J. Nick Koston
2025-06-08 19:02:30 -05:00
committed by GitHub
parent 80dddb4cae
commit c0b05ada1a
218 changed files with 1569 additions and 931 deletions

View File

@@ -84,8 +84,10 @@ void SDMMeter::on_modbus_data(const std::vector<uint8_t> &data) {
void SDMMeter::update() { this->send(MODBUS_CMD_READ_IN_REGISTERS, 0, MODBUS_REGISTER_COUNT); }
void SDMMeter::dump_config() {
ESP_LOGCONFIG(TAG, "SDM Meter:");
ESP_LOGCONFIG(TAG, " Address: 0x%02X", this->address_);
ESP_LOGCONFIG(TAG,
"SDM Meter:\n"
" Address: 0x%02X",
this->address_);
for (uint8_t i = 0; i < 3; i++) {
auto phase = this->phases_[i];
if (!phase.setup)