mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
fixed the combi boiler logic
This commit is contained in:
parent
014d51c060
commit
88f43bcc82
2 changed files with 4 additions and 3 deletions
|
|
@ -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"])
|
||||
),
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue