extract renewables pv connection 🟥

This commit is contained in:
Daniel Roth 2026-04-21 15:17:34 +00:00
parent 0e69f8e7a5
commit 8b4b345f7a

View file

@ -415,12 +415,17 @@ class PasHubRdSapSiteNotesExtractor:
if batteries_raw is None or batteries_raw.lower() == "none"
else int(batteries_raw)
)
pv_connection = self._get_in(r_section, "PV Connection:")
percent_raw = self._get_in(r_section, "Percentage of roof covered with photovoltaic array?")
percent_roof = int(percent_raw.split()[0]) if percent_raw else None
return Renewables(
wind_turbines=self._bool_in(r_section, "Has wind turbines?"),
solar_hot_water=self._bool_in(r_section, "Has solar hot water?"),
photovoltaic_array=self._bool_in(r_section, "Has photovoltaic array?"),
number_of_pv_batteries=batteries,
hydro=self._bool_in(r_section, "Is the dwelling connected to Hydro?"),
pv_connection=pv_connection,
percent_roof_covered_pv=percent_roof,
)
def extract_room_count_elements(self) -> RoomCountElements: