mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
prevent hot water tank insulation recommendations when no heating system is in place
This commit is contained in:
parent
e182d7acd7
commit
02e72c5695
1 changed files with 7 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue