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

Remove unnecessary ellipsis (#8964)

This commit is contained in:
Keith Burzinski
2025-06-03 15:46:10 -05:00
committed by GitHub
parent 8cbe2b41f6
commit 6675e99862
91 changed files with 179 additions and 181 deletions

View File

@@ -45,8 +45,8 @@ void Application::register_component_(Component *comp) {
this->components_.push_back(comp);
}
void Application::setup() {
ESP_LOGI(TAG, "Running through setup()...");
ESP_LOGV(TAG, "Sorting components by setup priority...");
ESP_LOGI(TAG, "Running through setup()");
ESP_LOGV(TAG, "Sorting components by setup priority");
std::stable_sort(this->components_.begin(), this->components_.end(), [](const Component *a, const Component *b) {
return a->get_actual_setup_priority() > b->get_actual_setup_priority();
});
@@ -215,14 +215,14 @@ void IRAM_ATTR HOT Application::feed_wdt(uint32_t time) {
}
}
void Application::reboot() {
ESP_LOGI(TAG, "Forcing a reboot...");
ESP_LOGI(TAG, "Forcing a reboot");
for (auto it = this->components_.rbegin(); it != this->components_.rend(); ++it) {
(*it)->on_shutdown();
}
arch_restart();
}
void Application::safe_reboot() {
ESP_LOGI(TAG, "Rebooting safely...");
ESP_LOGI(TAG, "Rebooting safely");
run_safe_shutdown_hooks();
arch_restart();
}