From 49eba0a9bc28312e080e0bec7cf299a9fdacd849 Mon Sep 17 00:00:00 2001 From: Jesse Hills <3060199+jesserockz@users.noreply.github.com> Date: Wed, 28 Aug 2024 11:23:10 +1200 Subject: [PATCH] Logs requests left --- esphome/components/power_supply/power_supply.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/esphome/components/power_supply/power_supply.cpp b/esphome/components/power_supply/power_supply.cpp index 7474075302..56488d9d84 100644 --- a/esphome/components/power_supply/power_supply.cpp +++ b/esphome/components/power_supply/power_supply.cpp @@ -43,6 +43,7 @@ void PowerSupply::unrequest_high_power() { return; } this->active_requests_--; + ESP_LOGD(TAG, "Unrequesting high power, %d requests left.", this->active_requests_); if (this->active_requests_ == 0) { this->set_timeout("power-supply-off", this->keep_on_time_, [this]() { ESP_LOGD(TAG, "Disabling power supply.");