prevent hot water tank insulation recommendations when no heating system is in place

This commit is contained in:
Khalim Conn-Kowlessar 2024-04-05 14:02:48 +01:00
parent e182d7acd7
commit 02e72c5695

View file

@ -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