mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
map secondary heating system to secondary_heating_type 🟥
This commit is contained in:
parent
771c700643
commit
f43a4d20eb
2 changed files with 4 additions and 1 deletions
|
|
@ -270,3 +270,6 @@ class TestPdfToEpcPropertyDataFixture2:
|
|||
|
||||
def test_cylinder_size(self, result: EpcPropertyData) -> None:
|
||||
assert result.sap_heating.cylinder_size == "Normal (90-130 litres)"
|
||||
|
||||
def test_secondary_heating_type(self, result: EpcPropertyData) -> None:
|
||||
assert result.sap_heating.secondary_heating_type == "Open fire in grate"
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ class SapHeating:
|
|||
cylinder_insulation_type: Optional[int] = None
|
||||
cylinder_thermostat: Optional[str] = None
|
||||
secondary_fuel_type: Optional[int] = None
|
||||
secondary_heating_type: Optional[int] = None
|
||||
secondary_heating_type: Optional[Union[int, str]] = None # int from API; str from site notes
|
||||
cylinder_insulation_thickness_mm: Optional[int] = None
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue