1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-06 11:53:45 +01:00

Streamline setup() logging (g, h, i) (#8927)

This commit is contained in:
Keith Burzinski
2025-05-28 13:55:02 -05:00
committed by GitHub
parent 18653f8f69
commit 0ce03ae26b
29 changed files with 34 additions and 35 deletions

View File

@@ -8,7 +8,7 @@ namespace gpio {
static const char *const TAG = "gpio.one_wire";
void GPIOOneWireBus::setup() {
ESP_LOGCONFIG(TAG, "Setting up 1-wire bus...");
ESP_LOGCONFIG(TAG, "Running setup");
this->t_pin_->setup();
this->t_pin_->pin_mode(gpio::FLAG_INPUT | gpio::FLAG_PULLUP);
// clear bus with 480µs high, otherwise initial reset in search might fail

View File

@@ -8,7 +8,7 @@ static const char *const TAG = "switch.gpio";
float GPIOSwitch::get_setup_priority() const { return setup_priority::HARDWARE; }
void GPIOSwitch::setup() {
ESP_LOGCONFIG(TAG, "Setting up GPIO Switch '%s'...", this->name_.c_str());
ESP_LOGCONFIG(TAG, "Running setup for '%s'", this->name_.c_str());
bool initial_state = this->get_initial_state_with_restore_mode().value_or(false);