From 0440de49654cd4151b2aeee5a4ff362947f381ae Mon Sep 17 00:00:00 2001 From: Khalim Conn-Kowlessar Date: Thu, 25 Jun 2026 21:38:06 +0000 Subject: [PATCH] =?UTF-8?q?Map=20main=5Fheating=5Fcontrols=20on=20full-SAP?= =?UTF-8?q?=20certs=20for=20the=20FE=20panel=20=F0=9F=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.8 (1M context) --- datatypes/epc/domain/tests/test_from_sap_schema.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/datatypes/epc/domain/tests/test_from_sap_schema.py b/datatypes/epc/domain/tests/test_from_sap_schema.py index c5daa082..08bff90a 100644 --- a/datatypes/epc/domain/tests/test_from_sap_schema.py +++ b/datatypes/epc/domain/tests/test_from_sap_schema.py @@ -164,6 +164,17 @@ class TestFromSapSchema17_1DisplayElements: assert result.hot_water is not None assert result.hot_water.description == "From main system" + def test_maps_main_heating_controls_display_element( + self, result: EpcPropertyData + ) -> None: + # "Heating Control" panel row. Full-SAP lodges it as a list; mirror the + # 21.0.1 mapper and take the first control system. + assert result.main_heating_controls is not None + assert ( + result.main_heating_controls.description + == "Time and temperature zone control" + ) + class TestFullSapHasHotWaterCylinderFallback: """Some full-SAP certs (e.g. SAP-Schema-17.0 cert 8265-7433-3220-9736-7902)