diff --git a/recommendations/HeatingRecommender.py b/recommendations/HeatingRecommender.py index 859a440f..fa070518 100644 --- a/recommendations/HeatingRecommender.py +++ b/recommendations/HeatingRecommender.py @@ -121,13 +121,15 @@ class HeatingRecommender: if self.property.data["mainheat-energy-eff"] not in ["Poor", "Very Poor"]: # We do just heating controls - recs = self.combine_heating_and_controls( - controls_recommendations=controls_recommender.recommendation, - heating_simulation_config={}, - costs={}, - description="", - phase=phase, - heating_controls_only=heating_controls_only + self.recommendations.extend( + self.combine_heating_and_controls( + controls_recommendations=controls_recommender.recommendation, + heating_simulation_config={}, + costs={}, + description="", + phase=phase, + heating_controls_only=heating_controls_only + ) ) return @@ -164,11 +166,24 @@ class HeatingRecommender: We can then consider the heating system itself :return: """ - if self.property.data["mainheat-energy-eff"] not in ["Poor", "Very Poor"]: - return controls_recommender = HeatingControlRecommender(self.property) controls_recommender.recommend(heating_description="Room heaters, electric") + + if self.property.data["mainheat-energy-eff"] not in ["Poor", "Very Poor"]: + # We do just heating controls + self.recommendations.extend( + self.combine_heating_and_controls( + controls_recommendations=controls_recommender.recommendation, + heating_simulation_config={}, + costs={}, + description="", + phase=phase, + heating_controls_only=heating_controls_only + ) + ) + return + costs = self.costs.electric_room_heaters( number_heated_rooms=self.property.data["number-heated-rooms"] ) @@ -176,7 +191,7 @@ class HeatingRecommender: heating_simulation_config = {"mainheat_energy_eff_ending": "Average"} recommendations = self.combine_heating_and_controls( - controls_recommender=controls_recommender, + controls_recommendations=controls_recommender.recommendation, heating_simulation_config=heating_simulation_config, costs=costs, description=description,