remove unused import

This commit is contained in:
Daniel Roth 2026-04-27 11:06:58 +00:00
parent b36c8b884c
commit 6cc73b6ebf

View file

@ -62,7 +62,6 @@ from datatypes.epc.surveys.pashub_rdsap_site_notes import (
ExtensionConstruction, ExtensionConstruction,
ExtensionMeasurements, ExtensionMeasurements,
ExtensionRoofSpace, ExtensionRoofSpace,
FloorConstruction,
FloorMeasurement, FloorMeasurement,
HeatingAndHotWater, HeatingAndHotWater,
PasHubRdSapSiteNotes, PasHubRdSapSiteNotes,
@ -265,7 +264,9 @@ class EpcPropertyDataMapper:
photovoltaic_array=survey.renewables.photovoltaic_panel != "None", photovoltaic_array=survey.renewables.photovoltaic_panel != "None",
sap_ventilation=_map_elmhurst_ventilation(survey.ventilation), sap_ventilation=_map_elmhurst_ventilation(survey.ventilation),
percent_draughtproofed=survey.draught_proofing_percent, percent_draughtproofed=survey.draught_proofing_percent,
waste_water_heat_recovery="None" if not survey.renewables.wwhrs_present else "Present", waste_water_heat_recovery=(
"None" if not survey.renewables.wwhrs_present else "Present"
),
any_unheated_rooms=survey.heated_habitable_rooms < survey.habitable_rooms, any_unheated_rooms=survey.heated_habitable_rooms < survey.habitable_rooms,
) )
@ -1649,7 +1650,11 @@ def _map_sap_heating(
fuel_type = ( fuel_type = (
_raw_fuel _raw_fuel
if _raw_fuel if _raw_fuel
else ("Electricity" if main.system_type.lower() in _ELECTRIC_SYSTEM_TYPES else _raw_fuel) else (
"Electricity"
if main.system_type.lower() in _ELECTRIC_SYSTEM_TYPES
else _raw_fuel
)
) )
return SapHeating( return SapHeating(
@ -1671,7 +1676,11 @@ def _map_sap_heating(
secondary_fuel_type=secondary_fuel_type, secondary_fuel_type=secondary_fuel_type,
secondary_heating_type=heating.secondary_heating.secondary_system, secondary_heating_type=heating.secondary_heating.secondary_system,
shower_outlets=shower_outlets, shower_outlets=shower_outlets,
cylinder_size=heating.water_heating.cylinder_size if heating.water_heating.cylinder_size != "No Cylinder" else None, cylinder_size=(
heating.water_heating.cylinder_size
if heating.water_heating.cylinder_size != "No Cylinder"
else None
),
cylinder_insulation_type=heating.water_heating.insulation_type, cylinder_insulation_type=heating.water_heating.insulation_type,
cylinder_insulation_thickness_mm=heating.water_heating.insulation_thickness_mm, cylinder_insulation_thickness_mm=heating.water_heating.insulation_thickness_mm,
immersion_heating_type=heating.water_heating.immersion_type, immersion_heating_type=heating.water_heating.immersion_type,
@ -1772,7 +1781,11 @@ def _map_elmhurst_sap_heating(survey: ElmhurstSiteNotes) -> SapHeating:
], ],
has_fixed_air_conditioning=survey.ventilation.fixed_space_cooling, has_fixed_air_conditioning=survey.ventilation.fixed_space_cooling,
shower_outlets=shower_outlets, shower_outlets=shower_outlets,
cylinder_size=None if not survey.water_heating.hot_water_cylinder_present else survey.water_heating.water_heating_code, cylinder_size=(
None
if not survey.water_heating.hot_water_cylinder_present
else survey.water_heating.water_heating_code
),
water_heating_code=survey.water_heating.water_heating_sap_code, water_heating_code=survey.water_heating.water_heating_sap_code,
) )