1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-04 04:12:23 +01:00

Streamline setup() logging (a, b) (#8924)

This commit is contained in:
Keith Burzinski
2025-05-28 05:53:51 -05:00
committed by GitHub
parent ca6295d1bd
commit b6fa4f641d
36 changed files with 37 additions and 37 deletions

View File

@@ -38,7 +38,7 @@ MTreg:
*/
void BH1750Sensor::setup() {
ESP_LOGCONFIG(TAG, "Setting up BH1750 '%s'...", this->name_.c_str());
ESP_LOGCONFIG(TAG, "Running setup for '%s'", this->name_.c_str());
uint8_t turn_on = BH1750_COMMAND_POWER_ON;
if (this->write(&turn_on, 1) != i2c::ERROR_OK) {
this->mark_failed();