mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +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")
|
||||
# We may have 2 recommendations from the heating controls
|
||||
|
||||
if not controls_recommender.recommendation:
|
||||
if not controls_recommender.recommendation and not boiler_recommendation:
|
||||
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:
|
||||
# We combine the heating and controls recommendations, in the case of a system change
|
||||
combined_recommendations = []
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue