mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-30 13:10:47 +00:00
map pv connection 🟥
This commit is contained in:
parent
8b4b345f7a
commit
5bd4e22886
2 changed files with 8 additions and 1 deletions
|
|
@ -292,3 +292,10 @@ class TestPdfToEpcPropertyDataFixture3:
|
||||||
|
|
||||||
def test_immersion_heating_type(self, result: EpcPropertyData) -> None:
|
def test_immersion_heating_type(self, result: EpcPropertyData) -> None:
|
||||||
assert result.sap_heating.immersion_heating_type == "Dual"
|
assert result.sap_heating.immersion_heating_type == "Dual"
|
||||||
|
|
||||||
|
def test_pv_connection(self, result: EpcPropertyData) -> None:
|
||||||
|
assert result.sap_energy_source.pv_connection == "Connected to dwellings electricity meter"
|
||||||
|
|
||||||
|
def test_photovoltaic_supply_percent_roof(self, result: EpcPropertyData) -> None:
|
||||||
|
assert result.sap_energy_source.photovoltaic_supply is not None
|
||||||
|
assert result.sap_energy_source.photovoltaic_supply.none_or_no_details.percent_roof_area == 45
|
||||||
|
|
|
||||||
|
|
@ -130,7 +130,7 @@ class SapEnergySource:
|
||||||
wind_turbines_terrain_type: str # int in API, str (e.g. "Suburban") in site notes
|
wind_turbines_terrain_type: str # int in API, str (e.g. "Suburban") in site notes
|
||||||
electricity_smart_meter_present: bool
|
electricity_smart_meter_present: bool
|
||||||
|
|
||||||
pv_connection: Optional[int] = None
|
pv_connection: Optional[Union[int, str]] = None # int from API; str from site notes
|
||||||
photovoltaic_supply: Optional[PhotovoltaicSupply] = None
|
photovoltaic_supply: Optional[PhotovoltaicSupply] = None
|
||||||
wind_turbine_details: Optional[WindTurbineDetails] = None
|
wind_turbine_details: Optional[WindTurbineDetails] = None
|
||||||
pv_batteries: Optional[PvBatteries] = None
|
pv_batteries: Optional[PvBatteries] = None
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue