From f43a4d20eb2be06f1229a8c02b509fded423f238 Mon Sep 17 00:00:00 2001 From: Daniel Roth Date: Tue, 21 Apr 2026 11:51:14 +0000 Subject: [PATCH] =?UTF-8?q?map=20secondary=20heating=20system=20to=20secon?= =?UTF-8?q?dary=5Fheating=5Ftype=20=F0=9F=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/documents_parser/tests/test_end_to_end.py | 3 +++ datatypes/epc/domain/epc_property_data.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/backend/documents_parser/tests/test_end_to_end.py b/backend/documents_parser/tests/test_end_to_end.py index b994cd11..428d2cad 100644 --- a/backend/documents_parser/tests/test_end_to_end.py +++ b/backend/documents_parser/tests/test_end_to_end.py @@ -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" diff --git a/datatypes/epc/domain/epc_property_data.py b/datatypes/epc/domain/epc_property_data.py index f0d8607d..563ceb31 100644 --- a/datatypes/epc/domain/epc_property_data.py +++ b/datatypes/epc/domain/epc_property_data.py @@ -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