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

Fix / Reverse order shutdown (#3585)

This commit is contained in:
RoboMagus
2022-06-21 01:26:34 +02:00
committed by GitHub
parent 0a4213182e
commit 34adbf0588
2 changed files with 14 additions and 14 deletions

View File

@@ -161,14 +161,7 @@ class Application {
void safe_reboot();
void run_safe_shutdown_hooks() {
for (auto *comp : this->components_) {
comp->on_safe_shutdown();
}
for (auto *comp : this->components_) {
comp->on_shutdown();
}
}
void run_safe_shutdown_hooks();
uint32_t get_app_state() const { return this->app_state_; }