From 6bdcecefac956476e2026eb03ec984d618451b01 Mon Sep 17 00:00:00 2001 From: Jean-Marc Collin Date: Sun, 5 Jan 2025 08:47:00 +0000 Subject: [PATCH] Add logs --- .../versatile_thermostat/central_feature_power_manager.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/custom_components/versatile_thermostat/central_feature_power_manager.py b/custom_components/versatile_thermostat/central_feature_power_manager.py index a5389f3..1b4f7fd 100644 --- a/custom_components/versatile_thermostat/central_feature_power_manager.py +++ b/custom_components/versatile_thermostat/central_feature_power_manager.py @@ -149,6 +149,7 @@ class CentralFeaturePowerManager(BaseFeatureManager): if not self.is_configured or self.current_max_power is None or self.current_power is None: return + _LOGGER.debug("-------- Start of calculate_shedding") # Find all VTherms available_power = self.current_max_power - self.current_power vtherms_sorted = self.find_all_vtherm_with_power_management_sorted_by_dtemp() @@ -211,6 +212,8 @@ class CentralFeaturePowerManager(BaseFeatureManager): _LOGGER.debug("after vtherm %s total_power_added=%s, available_power=%s", vtherm.name, total_power_added, available_power) + _LOGGER.debug("-------- End of calculate_shedding") + def get_climate_components_entities(self) -> list: """Get all VTherms entitites""" vtherms = []