fixed the combi boiler logic

This commit is contained in:
Khalim Conn-Kowlessar 2024-04-11 16:49:44 +01:00
parent 014d51c060
commit 88f43bcc82
2 changed files with 4 additions and 3 deletions

View file

@ -215,7 +215,8 @@ class HeatingControlRecommender:
{
"type": "heating_control",
"parts": [],
"description": "Upgrade heating controls to Smart Thermostats, room sensors and smart radiator valves",
"description": "Upgrade heating controls to Smart Thermostats, room sensors and smart radiator valves "
"(time & temperature zone control)",
**self.costs.time_and_temperature_zone_control(
number_heated_rooms=int(self.property.data["number-heated-rooms"])
),

View file

@ -295,7 +295,7 @@ class HeatingRecommender:
# Otherwise, we recommend a gas condensing boiler, which will server a larger property, that has multiple
# bathrooms
is_combi = (
(self.property.data["number-heated-rooms"] <= 4) or
(self.property.data["number-heated-rooms"] <= 4) and
(self.property.n_bathrooms in [None, 0, 1])
)
if is_combi:
@ -370,7 +370,7 @@ class HeatingRecommender:
combined_recommendations.extend(combined_recommendation)
# Overwrite the existing boiler recommendation
self.recommendations = combined_recommendations
self.recommendations.extend(combined_recommendations)
else:
# We increment the recommendation phase, since the heating controls are separate from the boiler upgrade
# but we'll only upgrade if we have a heating recommendation