mirror of
https://github.com/esphome/esphome.git
synced 2025-09-06 21:32:21 +01:00
Streamline setup() logging (g, h, i) (#8927)
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user