Load Ventilation from SiteNotes JSON 🟩

This commit is contained in:
Daniel Roth 2026-04-16 14:24:41 +00:00
parent 4bcdb4823b
commit 7833413c8b

View file

@ -296,7 +296,23 @@ class PasHubRdSapSiteNotesExtractor:
)
def extract_ventilation(self) -> Ventilation:
raise NotImplementedError
v_section = self._section("Ventilation", "Conservatories")
return Ventilation(
ventilation_type=self._get_in(v_section, "Ventilation type:") or "",
has_fixed_air_conditioning=self._bool_in(v_section, "Has fixed air conditioning?"),
number_of_open_flues=int(self._get_in(v_section, "Number of open flues:") or 0),
number_of_closed_flues=int(self._get_in(v_section, "Number of closed flues:") or 0),
number_of_boiler_flues=int(self._get_in(v_section, "Number of boiler flues:") or 0),
number_of_other_flues=int(self._get_in(v_section, "Number of other flues:") or 0),
number_of_extract_fans=int(self._get_in(v_section, "Number of extract fans:") or 0),
number_of_passive_vents=int(self._get_in(v_section, "Number of passive vents:") or 0),
number_of_flueless_gas_fires=int(self._get_in(v_section, "Number of flueless gas fires:") or 0),
pressure_test=self._get_in(v_section, "Pressure test:") or "",
draught_lobby=self._bool_in(v_section, "Is there a draught lobby?"),
ventilation_in_pcdf_database=self._optional_bool_in(
v_section, "Is the ventilation in the PCDF database?"
),
)
def _parse_main_heating(self, data: List[str]) -> MainHeating:
return MainHeating(