From 02e72c569513b846cd1348caa17d20a786507c7b Mon Sep 17 00:00:00 2001 From: Khalim Conn-Kowlessar Date: Fri, 5 Apr 2024 14:02:48 +0100 Subject: [PATCH] prevent hot water tank insulation recommendations when no heating system is in place --- recommendations/HotwaterRecommendations.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/recommendations/HotwaterRecommendations.py b/recommendations/HotwaterRecommendations.py index 298671a2..667f5f69 100644 --- a/recommendations/HotwaterRecommendations.py +++ b/recommendations/HotwaterRecommendations.py @@ -22,8 +22,13 @@ class HotwaterRecommendations: # This first iteration of the recommender will provide very basic recommendation # We recommend heating controls based on the main heating system - if (self.property.hotwater["heater_type"] in ["electric immersion"]) & \ - (self.property.data["hot-water-energy-eff"] == "Very Poor"): + # If there is not system present, we do not recommend anything, since we will have a separate recommendation + # suggesting system upgrades (e.g. boiler replacement) + if ( + (self.property.hotwater["heater_type"] in ["electric immersion"]) & + (self.property.data["hot-water-energy-eff"] == "Very Poor") & + (self.property.hotwater["no_system_present"] is None) + ): self.recommend_tank_insulation(phase=phase) return