mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-30 13:10:47 +00:00
debugging recommendation when we have independent boiler upgrade and heating controls
This commit is contained in:
parent
3593b7ae9e
commit
391cb356ee
1 changed files with 5 additions and 1 deletions
|
|
@ -394,9 +394,13 @@ class HeatingRecommender:
|
||||||
controls_recommender.recommend(heating_description="Boiler and radiators, mains gas")
|
controls_recommender.recommend(heating_description="Boiler and radiators, mains gas")
|
||||||
# We may have 2 recommendations from the heating controls
|
# We may have 2 recommendations from the heating controls
|
||||||
|
|
||||||
if not controls_recommender.recommendation:
|
if not controls_recommender.recommendation and not boiler_recommendation:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
if not system_change and len(boiler_recommendation):
|
||||||
|
# If there is not a system change, we add the boiler recommendation at point.
|
||||||
|
self.recommendations.append(boiler_recommendation)
|
||||||
|
|
||||||
if system_change:
|
if system_change:
|
||||||
# We combine the heating and controls recommendations, in the case of a system change
|
# We combine the heating and controls recommendations, in the case of a system change
|
||||||
combined_recommendations = []
|
combined_recommendations = []
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue