1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-30 14:43:51 +00:00

Ensure components only powerdown after teardown (#9044)

This commit is contained in:
J. Nick Koston
2025-06-10 23:21:22 -05:00
committed by GitHub
parent ad37f103fa
commit 0e27ac281f
9 changed files with 22 additions and 5 deletions

View File

@@ -52,7 +52,7 @@ void PowerSupply::unrequest_high_power() {
});
}
}
void PowerSupply::on_shutdown() {
void PowerSupply::on_powerdown() {
this->active_requests_ = 0;
this->pin_->digital_write(false);
}

View File

@@ -32,7 +32,7 @@ class PowerSupply : public Component {
/// Hardware setup priority (+1).
float get_setup_priority() const override;
void on_shutdown() override;
void on_powerdown() override;
protected:
GPIOPin *pin_;