updated hotwater

This commit is contained in:
Khalim Conn-Kowlessar 2026-03-18 22:12:49 +00:00
parent e92b70f9ec
commit b174eea10e

View file

@ -65,7 +65,7 @@ class HotwaterRecommendations:
if (
(self.property.hotwater["heater_type"] in ["electric immersion"]) &
(self.property.data["hot-water-energy-eff"] == "Very Poor") &
(self.property.epc_record.hot_water_energy_eff == "Very Poor") &
(self.property.hotwater["no_system_present"] is None) &
(len(has_tank_recommendation) == 0)
):
@ -141,7 +141,7 @@ class HotwaterRecommendations:
)
simulation_config = {
"hot_water_energy_eff_ending": self.property.data["hot-water-energy-eff"],
"hot_water_energy_eff_ending": self.property.epc_record.hot_water_energy_eff,
**hotwater_simulation_config
}
@ -158,7 +158,7 @@ class HotwaterRecommendations:
**recommendation_cost,
"simulation_config": simulation_config,
"description_simulation": {
"hot-water-energy-eff": self.property.data["hot-water-energy-eff"],
"hot-water-energy-eff": self.property.epc_record.hot_water_energy_eff,
"hotwater-description": new_epc_description,
},
"survey": survey,
@ -198,10 +198,10 @@ class HotwaterRecommendations:
new_config=hotwater_ending_config, old_config=self.property.hotwater
)
if self.property.data["hot-water-energy-eff"] in ["Very Poor", "Poor", "Average"]:
if self.property.epc_record.hot_water_energy_eff in ["Very Poor", "Poor", "Average"]:
new_efficiency = "Good"
else:
new_efficiency = self.property.data["hot-water-energy-eff"]
new_efficiency = self.property.epc_record.hot_water_energy_eff
simulation_config = {
"hot_water_energy_eff_ending": new_efficiency,