mirror of
https://github.com/esphome/esphome.git
synced 2024-11-26 12:27:13 +01:00
Logs requests left
This commit is contained in:
parent
34cce0e920
commit
49eba0a9bc
@ -43,6 +43,7 @@ void PowerSupply::unrequest_high_power() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this->active_requests_--;
|
this->active_requests_--;
|
||||||
|
ESP_LOGD(TAG, "Unrequesting high power, %d requests left.", this->active_requests_);
|
||||||
if (this->active_requests_ == 0) {
|
if (this->active_requests_ == 0) {
|
||||||
this->set_timeout("power-supply-off", this->keep_on_time_, [this]() {
|
this->set_timeout("power-supply-off", this->keep_on_time_, [this]() {
|
||||||
ESP_LOGD(TAG, "Disabling power supply.");
|
ESP_LOGD(TAG, "Disabling power supply.");
|
||||||
|
Loading…
Reference in New Issue
Block a user